simple_openid_connect.token_introspection#

OAuth 2.0 Token Introspection implementation.

Functions

introspect_token(introspection_endpoint, ...)

Introspect the given token at the OP.

simple_openid_connect.token_introspection.introspect_token(introspection_endpoint: str, token: str, auth: ClientAuthenticationMethod, token_type_hint: Optional[str] = None) Union[TokenIntrospectionSuccessResponse, TokenIntrospectionErrorResponse]#

Introspect the given token at the OP.

Parameters
  • introspection_endpoint – The token introspection endpoint of the OP.

  • token – The token to introspect.

  • auth – Method with which this request is authenticated to the OP.

  • token_type_hint – Which type of token this is e.g. refresh_token or access_token.

Returns

The OPs response