Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
uniqueg committed May 20, 2024
1 parent b195666 commit 197f425
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion foca/security/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 197f425

Please sign in to comment.