POST /oauth2/token

Get access, refresh and id tokens, as per the Open ID Connect specification for the token request.

Request must include client ID and Secret in Basic Authentication header, i.e. the 'client_secret_basic' authentication method, as per the Open ID Connect specification for client authentication.

Resource URL

https://repo-prod.prod.sagebase.org/auth/v1/oauth2/token

Parameters
grant_type authorization_code or refresh_token
code

optional

required if grant_type is authorization_code
redirect_uri

optional

required if grant_type is authorization_code
refresh_token

optional

required if grant_type is refresh_token
scope

optional

only provided if grant_type is refresh_token
claims

optional

optional if grant_type is refresh_token
Resource Information
Authentication not required
HTTP Method POST
Request Object None
Response Object OIDCTokenResponse
(application/json)