Skip to content

GetOAuthTokenRequest

Source code in docs_src/capo_credentialbroker/types/get_o_auth_token_request.py
class GetOAuthTokenRequest(TypedDict, closed=True):
    credential_provider_arn: (
        "capo_credentialbroker.types.credential_provider_arn.CredentialProviderArn"
    )
    """<p>Amazon Resource Name of the credential provider to obtain the token from. The provider must be an OAuth provider and must be READY.</p>"""
    grant_type: "capo_credentialbroker.types.grant_type.GrantType"
    """<p>How the token is obtained. Must be one of the grant types the provider allows; a grant the provider does not allow is rejected.</p>"""
    scopes: NotRequired["capo_credentialbroker.types.scopes.Scopes"]
    """<p>The OAuth scopes to request from the authorization server.</p>"""
    resources: NotRequired["capo_credentialbroker.types.resources.Resources"]
    """<p>Resource indicators (RFC 8707) naming the APIs this token is for. Omit unless the authorization server requires them.</p>"""
    audiences: NotRequired["capo_credentialbroker.types.audiences.Audiences"]
    """<p>Audience values (RFC 8693) naming the intended recipients of this token. Omit unless the authorization server requires them.</p>"""
    custom_parameters: NotRequired[
        "capo_credentialbroker.types.custom_parameters.CustomParameters"
    ]
    """<p>Extra parameters to include in the request to the authorization server, for vendor extensions. Added to the standard OAuth parameters; they never override them.</p>"""
    force_authentication: NotRequired["bool"]
    """<p>Request a new token from the authorization server even when the broker already holds a valid one for this provider. Defaults to false, which returns the held token when one is available.</p>"""
    session_uri: NotRequired["capo_credentialbroker.types.session_uri.SessionUri"]
    """<p>Return the token obtained for a consent session that a user has already completed. Supply the handle returned when the session was started.</p>"""

audiences instance-attribute

audiences: NotRequired[Audiences]

Audience values (RFC 8693) naming the intended recipients of this token. Omit unless the authorization server requires them.

credential_provider_arn instance-attribute

credential_provider_arn: CredentialProviderArn

Amazon Resource Name of the credential provider to obtain the token from. The provider must be an OAuth provider and must be READY.

custom_parameters instance-attribute

custom_parameters: NotRequired[CustomParameters]

Extra parameters to include in the request to the authorization server, for vendor extensions. Added to the standard OAuth parameters; they never override them.

force_authentication instance-attribute

force_authentication: NotRequired[bool]

Request a new token from the authorization server even when the broker already holds a valid one for this provider. Defaults to false, which returns the held token when one is available.

grant_type instance-attribute

grant_type: GrantType

How the token is obtained. Must be one of the grant types the provider allows; a grant the provider does not allow is rejected.

resources instance-attribute

resources: NotRequired[Resources]

Resource indicators (RFC 8707) naming the APIs this token is for. Omit unless the authorization server requires them.

scopes instance-attribute

scopes: NotRequired[Scopes]

The OAuth scopes to request from the authorization server.

session_uri instance-attribute

session_uri: NotRequired[SessionUri]

Return the token obtained for a consent session that a user has already completed. Supply the handle returned when the session was started.