Get authentication token
Authentication
Get Authentication Token
Generate a new auth token and session for the user
POST
Get authentication token
Exchanges client credentials (client ID and client secret) for an access token using HTTP Basic Authentication. The client ID is used as the username and the client secret as the password, encoded as Base64 in the format: Basic base64(clientId:clientSecret).
Authorization is done using the “Basic” format within the “Authorization” header. Assuming client id is “sean@example.com” and client secret is “MyVeryCoolSecretPleaseDontSteal”, the format of the unencoded string is as follows:
Then base64 encode the string (in javascript this is Window: btoa() method - Web APIs | MDN) to get the following:
This can be done in the browser console with the methods
btoa() and atob() to confirm these values during testing.
Body
application/json
OAuth2 grant type
Available options:
client_credentials