Endpoint (standard) | |
---|---|
URL | <baseurl>/oauth/token |
Authentication | Basic |
Request |
Token is a standard endpoint used for exchanging an Authorization Code with an Access Token. The Authorization Code is contained in the foregoing response from the Authorize endpoint. The practise to exchange an Authorization Code for an Access Token applies for Autorization Code flow and Hybrid flow. The Access Token is used for subsequent access to Protected Resources, among them resources behind the Userinfo endpoint.
The request should be a POST with parameters sent as "application/x-www-form-urlencoded" data.
Name | Description |
---|---|
grant_type | authorization_code |
code | Value from Authorize request |
redirect_uri | Redirect URI used in Authorize request |
Response elements
Return is a JSON structure with name/value pairs.