about summary refs log tree commit diff
path: root/gn_auth/auth/authentication/oauth2/endpoints
diff options
context:
space:
mode:
Diffstat (limited to 'gn_auth/auth/authentication/oauth2/endpoints')
-rw-r--r--gn_auth/auth/authentication/oauth2/endpoints/introspection.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gn_auth/auth/authentication/oauth2/endpoints/introspection.py b/gn_auth/auth/authentication/oauth2/endpoints/introspection.py
index 222ddcb..572324e 100644
--- a/gn_auth/auth/authentication/oauth2/endpoints/introspection.py
+++ b/gn_auth/auth/authentication/oauth2/endpoints/introspection.py
@@ -24,12 +24,13 @@ class IntrospectionEndpoint(_IntrospectionEndpoint):
         """Query the token."""
         return _query_token(self, token_string, token_type_hint)
 
-    def introspect_token(self, token: OAuth2Token) -> dict:# pylint: disable=[no-self-use]
+    # pylint: disable=[no-self-use]
+    def introspect_token(self, token: OAuth2Token) -> dict:
         """Return the introspection information."""
         url = urlparse(flask_request.url)
         return {
             "active": True,
-            "scope": token.get_scope(),
+            "scope": token.scope,
             "client_id": token.client.client_id,
             "username": token.user.name,
             "token_type": token.token_type,