aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/authentication
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-12-31 11:09:16 -0600
committerFrederick Muriuki Muriithi2024-12-31 11:09:16 -0600
commit96e4790eb6f453b16b87e1b763c2a966ac95f77d (patch)
tree8e162710d371e706d6ad258fa7a8d72912e7de98 /gn_auth/auth/authentication
parent1f5ca56daede659ce1953d459bc51c0c2971868f (diff)
downloadgn-auth-96e4790eb6f453b16b87e1b763c2a966ac95f77d.tar.gz
DEBUG: See the Public JWKS uri.
Diffstat (limited to 'gn_auth/auth/authentication')
-rw-r--r--gn_auth/auth/authentication/oauth2/models/oauth2client.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gn_auth/auth/authentication/oauth2/models/oauth2client.py b/gn_auth/auth/authentication/oauth2/models/oauth2client.py
index df5d564..d39f0c6 100644
--- a/gn_auth/auth/authentication/oauth2/models/oauth2client.py
+++ b/gn_auth/auth/authentication/oauth2/models/oauth2client.py
@@ -13,6 +13,7 @@ from authlib.jose import KeySet, JsonWebKey
from authlib.oauth2.rfc6749 import ClientMixin
from pymonad.maybe import Just, Maybe, Nothing
+from gn_auth.debug import __pk__
from gn_auth.auth.db import sqlite3 as db
from gn_auth.auth.errors import NotFoundError
from gn_auth.auth.authentication.users import (User,
@@ -62,6 +63,7 @@ class OAuth2Client(ClientMixin):
def jwks(self) -> KeySet:
"""Return this client's KeySet."""
jwksuri = self.client_metadata.get("public-jwks-uri")
+ __pk__(f"PUBLIC JWKs link for client {self.client_id}", jwksuri)
if not bool(jwksuri):
logging.debug("No Public JWKs URI set for client!")
return KeySet([])