diff options
author | Frederick Muriuki Muriithi | 2024-04-22 12:23:20 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-04-22 12:23:20 +0300 |
commit | 35a7a72071c4e712c536dd5d9c634146429d33ee (patch) | |
tree | c4e129b7fc38fecda5d42843b797ca93b4145d1a /gn_auth/auth/authentication/oauth2/grants/jwt_bearer_grant.py | |
parent | 23de967334a5f7f2f2daa60884d550e5bd27767e (diff) | |
download | gn-auth-35a7a72071c4e712c536dd5d9c634146429d33ee.tar.gz |
Resolve the key using the "kid" field.
Diffstat (limited to 'gn_auth/auth/authentication/oauth2/grants/jwt_bearer_grant.py')
-rw-r--r-- | gn_auth/auth/authentication/oauth2/grants/jwt_bearer_grant.py | 2 |
1 files changed, 1 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 cc4a12f..85c8d2e 100644 --- a/gn_auth/auth/authentication/oauth2/grants/jwt_bearer_grant.py +++ b/gn_auth/auth/authentication/oauth2/grants/jwt_bearer_grant.py @@ -49,7 +49,7 @@ class JWTBearerGrant(_JWTBearerGrant): def resolve_client_key(self, client, headers, payload): """Resolve client key to decode assertion data.""" - return app.config["JWT_PUBLIC_KEY"] + return app.config["SSL_PUBLIC_KEYS"].get(headers["kid"]) def authenticate_user(self, subject): |