diff options
author | Frederick Muriuki Muriithi | 2024-07-19 12:24:04 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-07-31 09:30:24 -0500 |
commit | 12453be99f2bf21842a9e488ecf72c06a06625f0 (patch) | |
tree | 039dc3b5b7ca80f73a98b8cee1a8f35b05cc609a /gn_auth/auth/authentication/oauth2/grants | |
parent | 6b18e1f0b05222d84fd0b06a8e5c2780df6958d5 (diff) | |
download | gn-auth-12453be99f2bf21842a9e488ecf72c06a06625f0.tar.gz |
Fetch a client's JWKs from a URI
Diffstat (limited to 'gn_auth/auth/authentication/oauth2/grants')
-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 b0f2cc7..1f53186 100644 --- a/gn_auth/auth/authentication/oauth2/grants/jwt_bearer_grant.py +++ b/gn_auth/auth/authentication/oauth2/grants/jwt_bearer_grant.py @@ -74,7 +74,7 @@ class JWTBearerGrant(_JWTBearerGrant): def resolve_client_key(self, client, headers, payload): """Resolve client key to decode assertion data.""" - return app.config["SSL_PUBLIC_KEYS"].get(headers["kid"]) + return client.jwks().find_by_kid(headers["kid"]) def authenticate_user(self, subject): |