Skip to content

RevokeTokenRequest

Source code in docs_src/capo_cognito_identity_provider/types/revoke_token_request.py
class RevokeTokenRequest(TypedDict, closed=True):
    token: "capo_cognito_identity_provider.types.token_model_type.TokenModelType"
    """<p>The refresh token that you want to revoke.</p>"""
    client_id: "capo_cognito_identity_provider.types.client_id_type.ClientIdType"
    """<p>The ID of the app client where the token that you want to revoke was issued.</p>"""
    client_secret: NotRequired[
        "capo_cognito_identity_provider.types.client_secret_type.ClientSecretType"
    ]
    """<p>The client secret of the requested app client, if the client has a secret.</p>"""
    revoke_associated_sessions: NotRequired[
        "capo_cognito_identity_provider.types.revoke_associated_sessions_type.RevokeAssociatedSessionsType"
    ]
    """<p>Specifies whether to also revoke the SSO session that is linked to the token session being revoked. <code>NONE</code>, the default, revokes only the token session that is associated with the refresh token. <code>LINKED</code> also revokes the parent SSO session that the token session came through; the other token sessions that came through that SSO session aren't revoked. <code>LINKED</code> has no effect when session tracking is disabled or when the token session has no parent SSO session.</p>"""

client_id instance-attribute

client_id: ClientIdType

The ID of the app client where the token that you want to revoke was issued.

client_secret instance-attribute

client_secret: NotRequired[ClientSecretType]

The client secret of the requested app client, if the client has a secret.

revoke_associated_sessions instance-attribute

revoke_associated_sessions: NotRequired[RevokeAssociatedSessionsType]

Specifies whether to also revoke the SSO session that is linked to the token session being revoked. NONE, the default, revokes only the token session that is associated with the refresh token. LINKED also revokes the parent SSO session that the token session came through; the other token sessions that came through that SSO session aren't revoked. LINKED has no effect when session tracking is disabled or when the token session has no parent SSO session.

token instance-attribute

The refresh token that you want to revoke.