Browse Source

fix: use a_public_key() in a_decode_token() instead of public_key() (#582)

pull/584/head v4.2.3
Denis Kotnik 5 months ago
committed by GitHub
parent
commit
ebfaa33ee6
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/keycloak/keycloak_openid.py

2
src/keycloak/keycloak_openid.py

@ -1231,7 +1231,7 @@ class KeycloakOpenID:
if "key" not in kwargs:
key = (
"-----BEGIN PUBLIC KEY-----\n"
+ self.public_key()
+ await self.a_public_key()
+ "\n-----END PUBLIC KEY-----"
)
key = jwk.JWK.from_pem(key.encode("utf-8"))

Loading…
Cancel
Save