introspect_o_auth2_token_with_iam
¶
introspect_o_auth2_token_with_iam(
token: IntrospectionToken,
*,
config_overrides: Optional[SigninClientConfig] = None,
token_type_hint: Optional[TokenTypeHint] = None,
) -> IntrospectOAuth2TokenWithIAMResponse
Inspects the metadata and active state of an OAuth 2.0 access token or refresh token. Implements RFC 7662 OAuth 2.0 Token Introspection over a SigV4-authenticated endpoint. Returns the claims associated with a token issued by AWS Sign-In.
Parameters:
-
token(IntrospectionToken) –The access token or refresh token issued by AWS Sign-In.
-
token_type_hint(Optional[TokenTypeHint], default:None) –An optional hint about the type of the token submitted for introspection, as defined in RFC 7662 §2.1. The server checks both token types regardless of the hint. Allowed values: "access_token", "refresh_token".
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–The request failed because of an internal server error.
-
TooManyRequestsError–The request failed because you exceeded the request rate limit for this operation.
-
ValidationException–The request failed because it contains a malformed, missing, or invalid parameter.
-
UnknownServiceError–The service returned an error code this client does not model.