Skip to content

Commit cf477c3

Browse files
committed
Pass the issuer for optimized server logging.
1 parent 9b65233 commit cf477c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

authress/api/token_verifier.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def verify_token(self, authressCustomDomain, token, options=None):
5656
if (clientIdMatcher is not None and clientIdMatcher.group(1) != unverifiedPayload['sub']):
5757
raise Exception("Unauthorized", "Service ID does not match token sub claim")
5858

59-
jwk = self.get_public_key(f"{issuer}/.well-known/openid-configuration/jwks?kid={kid}", kid)
59+
jwk = self.get_public_key(f"{issuer}/.well-known/openid-configuration/jwks?kid={kid}&iss={urlparse(issuer).netloc}", kid)
6060

6161
try:
6262
return jwt.decode(authenticationToken, jwt.api_jwk.PyJWK.from_dict(jwk).key, algorithms=['EdDSA'], options = { 'verify_aud': False })

0 commit comments

Comments
 (0)