We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8ab8a8 commit a9f4ec2Copy full SHA for a9f4ec2
authress/api/token_verifier.py
@@ -52,7 +52,7 @@ def verify_token(self, authressCustomDomain, token, options=None):
52
if (clientIdMatcher is not None and clientIdMatcher.group(1) != unverifiedPayload['sub']):
53
raise Exception("Unauthorized", "Service ID does not match token sub claim")
54
55
- jwk = self.get_public_key(f"{issuer}/.well-known/openid-configuration/jwks", kid)
+ jwk = self.get_public_key(f"{issuer}/.well-known/openid-configuration/jwks?kid={kid}", kid)
56
57
try:
58
return jwt.decode(authenticationToken, jwt.api_jwk.PyJWK.from_dict(jwk).key, algorithms=['EdDSA'], options = { 'verify_aud': False })
0 commit comments