CreateOAuth2TokenResponseBody¶
Structure Class¶
CreateOAuth2TokenResponseBody
dataclass
¶
Bases: _SerdeShape
The response body for an OAuth 2.0 token request. The fields returned depend on the "grant_type". The authorization code flow returns "refresh_token" and "id_token". The refresh token flow omits "id_token".
Attributes¶
access_token
instance-attribute
¶
access_token: AccessToken
The access token issued by the authorization server. The token contains temporary AWS security credentials that you use to sign requests with SigV4.
expires_in
instance-attribute
¶
expires_in: int
The number of seconds until the access token expires. Maximum value is 900 seconds (15 minutes).
id_token
class-attribute
instance-attribute
¶
id_token: str | None = ...
A JSON Web Token (JWT) containing user identity claims. Present only when "grant_type=authorization_code". Not included in refresh token responses.