Skip to content

Instantly share code, notes, and snippets.

@beleidy
Last active February 9, 2019 13:53
Show Gist options
  • Save beleidy/4bb198abccad713b9b456838b38d0534 to your computer and use it in GitHub Desktop.
Save beleidy/4bb198abccad713b9b456838b38d0534 to your computer and use it in GitHub Desktop.
GOOGLE_DISCOVERY_URI = "https://accounts.google.com/.well-known/openid-configuration"
response = requests.get(GOOGLE_DISCOVERY_URI)
response_json = response.json()
# If for any reason we don't get the expected response
# using the get method is safer
jwks_uri = response_json.get("jwks_uri", None)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment