Authorization

Obtain an access token

Exchanges OAuth client credentials for a JWT access token. The returned access_token must be sent as a Bearer token in the Authorization header on all subsequent requests, together with the lw-subscription-key header.

Note: this endpoint is served from the gateway root (https://api.lwolf.com) rather than a service base path.

post/oauth/token

Request

  • Base URL: https://api.lwolf.com
  • URL: https://api.lwolf.com/oauth/token
  • Auth: none required

Request body

grant_type'client_credentials' required

OAuth 2.0 grant type. Always client_credentials.

client_idstring required

OAuth client identifier issued by Lone Wolf.

client_secretstring required

OAuth client secret issued by Lone Wolf.

audiencestring required

Token audience. Always https://api.lwolf.com.

lwt_client_idstring uuid required

Lone Wolf client (tenant) GUID.

Example request

{
  "audience": "https://api.lwolf.com"
}

Response

Token issued successfully.

access_tokenstring

JWT access token to be sent as a Bearer token.

token_typestring
expires_ininteger

Token lifetime in seconds.

Example response

{
  "token_type": "Bearer"
}

Changes

No recorded changes to this operation across all 1 revision of this API.