The AWS AppFabric for productivity feature is in preview and is subject to change. |
Contains information that allows AppClients to exchange an authorization code for an access token.
Request body
The request accepts the following data in JSON format.
Parameter | Description |
---|---|
code |
The authorization code received from the authorization endpoint. Type: String Length Constraints: Minimum length of 1. Maximum length of 2048. Required: No |
grant_type |
The grant type for the token. Must be either
Type: String Required: Yes |
app_client_id |
The ID of the AppClient. Type: String Pattern:
Required: Yes |
redirect_uri |
The redirect URI passed to the authorization endpoint. Type: String Required: No |
refresh_token |
The refresh token received from the initial token request. Type: String Length Constraints: Minimum length of 1. Maximum length of 4096. Required: No |
Response elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
Parameter | Description |
---|---|
appfabric_user_id |
The ID of the user for the token. This is returned only
for requests that use the Type: String |
expires_in |
The number of seconds until the token expires. Type: Long |
refresh_token |
The refresh token to use for a subsequent request. Type: String Length Constraints: Minimum length of 1. Maximum length of 2048. |
token |
The access token. Type: String Length Constraints: Minimum length of 1. Maximum length of 2048. |
token_type |
The token type. Type: String |