Skip to content

Instantly share code, notes, and snippets.

@beleidy
Created February 9, 2019 14:09
Show Gist options
  • Save beleidy/fc538eec659551410e6478c7cff4f0f8 to your computer and use it in GitHub Desktop.
Save beleidy/fc538eec659551410e6478c7cff4f0f8 to your computer and use it in GitHub Desktop.
from jwt.algorithms import RSAAlgorithm
jwt_key = [key for key in JWKS_KEYS if key['kid'] == jwt_kid][0]
public_key = RSAAlgorithm.from_jwk(json.dumps(jwt_key))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment