Skip to content

Instantly share code, notes, and snippets.

@xhochy
Created April 13, 2013 10:08
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xhochy/5377824 to your computer and use it in GitHub Desktop.
Save xhochy/5377824 to your computer and use it in GitHub Desktop.
Tomahawk Web-API Auth Process

(Client == Process talking to the Tomahawk instance)

  • Client requests auth via GET /2/access/request_auth
  • Client indicates that it requires Authorization in the running Tomahawk instance and provides it UUID to the User
  • User sees authorization request in JobView and accepts it (for headless instances: tomahawk --grant-api-access <UUID>
  • Tomahawk indicates granted access to the client / Client polls if it has been granted access.
  • Tomahawk stores the UUID and some additional information (e.g. client name) in its DB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment