Skip to content

CreateOAuth2TokenRequestBodyDict

Dictionary Type

CreateOAuth2TokenRequestBodyDict

Bases: TypedDict

Dictionary form of CreateOAuth2TokenRequestBody.

Attributes

client_id instance-attribute
client_id: Required[str]

The OAuth 2.0 client identifier. Expected values: "arn:aws:signin:::devtools/same-device" or "arn:aws:signin:::devtools/cross-device".

code instance-attribute
code: str | None

The authorization code received from the "/v1/authorize" endpoint. Required when "grant_type=authorization_code".

code_verifier instance-attribute
code_verifier: str | None

The PKCE code verifier that proves possession of the original code challenge. Required when "grant_type=authorization_code".

grant_type instance-attribute
grant_type: Required[str]

The OAuth 2.0 grant type. Supported values: - "authorization_code" - Exchange an authorization code for tokens. - "refresh_token" - Use a refresh token to obtain a new access token.

redirect_uri instance-attribute
redirect_uri: str | None

The redirect URI that was used in the original authorization request. Must match exactly. Required when "grant_type=authorization_code".

refresh_token instance-attribute
refresh_token: str | None

The refresh token issued by a previous token response. Required when "grant_type=refresh_token".