oauth

This callback is used to get token from Oauth2 provider

Returns an access token

post/oauth/token

Request

Request body application/x-www-form-urlencoded

grant_typestring required

Must be authorization_code or refresh_token

client_idstring required

Your client ID

client_secretstring required

Your client secret

codestring

authorization_code received in redirect_uri must for grant_type = authorization_code

refresh_tokenstring

refresh_token received with previous token must for grant_type = refresh_token

statestring

state parameter to prevent cross site origin attacks use only if passed in getting authorization

redirect_uristring

redirect uri used to get authorization must for grant_type = authorization_code

Response

Success

access_tokenstring required

access_token to be used for accessing gateway

token_typestring required

Only value possible is "bearer".

expires_ininteger required

Token expiration time in seconds

refresh_tokenstring required

Refresh_token which can used to get new token

scopestring required

Scope string with individual scopes separated by space

Changes

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