Authentication APIs for user login, logout, and token management
Supported values are client_credentials
and urn:ietf:params:oauth:grant-type:token-exchange
.
Identifies the API being accessed in Spotnana.
A security token that represents the identity of the entity on whose behalf the request is being made.
Indicates the type of the subject_token
used for token exchange. This field supports the valid types as per the OAUTH 2.0 security framework.
curl -i -X POST \
https://apis.spotnana.com/v2/auth/oauth2-token \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d grant_type=string \
-d client_id=string \
-d client_secret=string \
-d audience=https://apis.spotnana.com/v2 \
-d subject_token=string \
-d subject_token_type=string \
-d scope=string
OK
The token to be used in subsequent API calls made to the Spotnana platform.
A case-insensitive value specifying the method of using the access token issued, as specified in Section 7.1 of [RFC6749].
Used to fetch a new access token when the existing token expires. The refresh token will not be available if the grant_type
is client_credentials
.
{ "access_token": "string", "expires_in": 0, "token_type": "Bearer", "refresh_token": "string", "scope": "string" }