diff options
author | Frederick Muriuki Muriithi | 2024-11-04 15:05:28 -0600 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-11-04 16:31:27 -0600 |
commit | fe3ba6d5c6c6acafdfb3ae5dacc2c95d997ec761 (patch) | |
tree | cc494d116328e78dd63260866f230dc0c00921f7 | |
parent | 5f03be90761126468a3aa1972740c439498cb331 (diff) | |
download | gn-auth-fe3ba6d5c6c6acafdfb3ae5dacc2c95d997ec761.tar.gz |
Output KeySet retrieved from the client.
-rw-r--r-- | gn_auth/auth/authentication/oauth2/grants/jwt_bearer_grant.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gn_auth/auth/authentication/oauth2/grants/jwt_bearer_grant.py b/gn_auth/auth/authentication/oauth2/grants/jwt_bearer_grant.py index 975cd68..27783ac 100644 --- a/gn_auth/auth/authentication/oauth2/grants/jwt_bearer_grant.py +++ b/gn_auth/auth/authentication/oauth2/grants/jwt_bearer_grant.py @@ -8,6 +8,7 @@ from authlib.oauth2.rfc7523.jwt_bearer import JWTBearerGrant as _JWTBearerGrant from authlib.oauth2.rfc7523.token import ( JWTBearerTokenGenerator as _JWTBearerTokenGenerator) +from gn_auth.debug import __pk__ from gn_auth.auth.db.sqlite3 import with_db_connection from gn_auth.auth.authentication.users import user_by_id @@ -75,7 +76,9 @@ class JWTBearerGrant(_JWTBearerGrant): def resolve_client_key(self, client, headers, payload): """Resolve client key to decode assertion data.""" - return client.jwks().find_by_kid(headers["kid"]) + keyset = client.jwks() + __pk__("THE KEYSET =======>", keyset.keys) + return keyset.find_by_kid(headers["kid"]) def authenticate_user(self, subject): |