Creates and returns an access token for the authorized client. The access token issued will be used to fetch short-term credentials for the assigned roles in the AWS account.
Request body
The unique identifier string for each client. This value should come from the persisted result of the <a>RegisterClient</a> API.
A secret string generated for the client. This value should come from the persisted result of the <a>RegisterClient</a> API.
Used only when calling this API for the device code grant type. This short-term code is used to identify this authentication attempt. This should come from an in-memory reference to the result of the <a>StartDeviceAuthorization</a> API.
The authorization code received from the authorization service. This parameter is required to perform an authorization grant request to get access to a token.
The list of scopes that is defined by the client. Upon authorization, this list is used to restrict permissions when granting an access token.
The location of the application that will receive the authorization code. Users authorize the service to send the request to this location.
Response
Success
An opaque token to access IAM Identity Center resources assigned to a user.
Used to notify the client that the returned token is an access token. The supported type is <code>BearerToken</code>.
Indicates the time in seconds when an access token will expire.