aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/authentication
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-04-22 12:23:20 +0300
committerFrederick Muriuki Muriithi2024-04-22 12:23:20 +0300
commit35a7a72071c4e712c536dd5d9c634146429d33ee (patch)
treec4e129b7fc38fecda5d42843b797ca93b4145d1a /gn_auth/auth/authentication
parent23de967334a5f7f2f2daa60884d550e5bd27767e (diff)
downloadgn-auth-35a7a72071c4e712c536dd5d9c634146429d33ee.tar.gz
Resolve the key using the "kid" field.
Diffstat (limited to 'gn_auth/auth/authentication')
-rw-r--r--gn_auth/auth/authentication/oauth2/grants/jwt_bearer_grant.py2
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):