From 197f4254a571e5897b4edbc0df2b4c33fff9a6d5 Mon Sep 17 00:00:00 2001 From: Alex Kanitz Date: Mon, 20 May 2024 04:53:02 +0200 Subject: [PATCH] fix --- foca/security/auth.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/foca/security/auth.py b/foca/security/auth.py index a7bc5d7..abdb7a4 100644 --- a/foca/security/auth.py +++ b/foca/security/auth.py @@ -319,7 +319,9 @@ def _get_public_keys( public_keys = {} for jwk in response.json().get(claim_keys, []): try: - key = str(jwt.algorithms.RSAAlgorithm.from_jwk(json.dumps(jwk))) + key = jwt.algorithms.RSAAlgorithm.from_jwk( # type:ignore + json.dumps(jwk) + ) # Ensure key is public if not isinstance(key, RSAPublicKey):