Get token

Description

Generate a token for a given client

Method

POST

Path

[runtime-name]/api/az/v1/token

Header parameters

Authorization
Basic Authorization header, required for client_credentials grant type

Form parameters

grant_type
Should be authorization_code or client_credentials
code
Grant code from Authorization endpoint redirect. Required for authorization_code grant type.
redirect_uri
redirectUri
client_assertion_type
Client assertion type, should be urn:ietf:params:oauth:client-assertion-type:jwt-bearer for authorization_code grant type.
client_assertion
Client assertion JWS string with JWT payload. Required for authorization_code grant type
scope
Requested scope, required for client_credentials grant type

Produces

application/json

Responses

404
Not Found
200
Token granted
201
Created
401
Unauthorized client
400
Invalid request
403
Forbidden