OAuth 2.0 Playground - Get Access Token
This section of the OAuth 2.0 Playground allows developers to exchange an authorization code for an access token. This process is essential in OAuth 2.0’s Authorization Code Flow, which provides secure, delegated access to an application’s resources on behalf of the user.
Refer to this document for more information about this section
¶ Request Parameters
Parameter | Description |
---|---|
grant_type |
Specifies the grant type for this request, which is authorization_code. |
redirect_uri |
This is the URI where the authorization server will redirect the user after the authorization code is obtained. It must match the redirect URI used in the authorization request. |
code_verifier |
If Proof Key for Code Exchange (PKCE) is used, enter the code verifier here to secure the code exchange process. |
code |
The authorization code obtained from the initial authorization request, which will be exchanged for an access token. |
¶ Step-by-step
-
At first you need to have generated a code using the /authorize route
-
After you have the code in hands, paste it in the code input field, fill the code_verifier if you are using PKCE and click Exchange Authorization Code for Tokens
-
After you send the required code, it’s going to retrieve the following information:
{
"access_token": "IA.XXXX",
"token_type": "Bearer",
"expires_in": 2592000,
"refresh_token": "MA.XXXX",
"scope": "offline_access profile"
}