diff --git a/authlib/oauth2/rfc9068/introspection.py b/authlib/oauth2/rfc9068/introspection.py index 17b5eb5a..751171b2 100644 --- a/authlib/oauth2/rfc9068/introspection.py +++ b/authlib/oauth2/rfc9068/introspection.py @@ -20,18 +20,21 @@ class JWTIntrospectionEndpoint(IntrospectionEndpoint): :: - class MyJWTAccessTokenIntrospectionEndpoint(JWTRevocationEndpoint): + class MyJWTAccessTokenIntrospectionEndpoint(JWTIntrospectionEndpoint): def get_jwks(self): ... def get_username(self, user_id): ... + # endpoint dedicated to JWT access token introspection authorization_server.register_endpoint( MyJWTAccessTokenIntrospectionEndpoint( issuer="https://authorization-server.example.org", ) ) + + # another endpoint dedicated to refresh token introspection authorization_server.register_endpoint(MyRefreshTokenIntrospectionEndpoint) ''' diff --git a/authlib/oauth2/rfc9068/revocation.py b/authlib/oauth2/rfc9068/revocation.py index 9453c79a..85db0e5e 100644 --- a/authlib/oauth2/rfc9068/revocation.py +++ b/authlib/oauth2/rfc9068/revocation.py @@ -25,11 +25,14 @@ class MyJWTAccessTokenRevocationEndpoint(JWTRevocationEndpoint): def get_jwks(self): ... + # endpoint dedicated to JWT access token revokation authorization_server.register_endpoint( MyJWTAccessTokenRevocationEndpoint( issuer="https://authorization-server.example.org", ) ) + + # another endpoint dedicated to refresh token revokation authorization_server.register_endpoint(MyRefreshTokenRevocationEndpoint) .. _RFC7009: https://tools.ietf.org/html/rfc7009