Skip to content

Commit

Permalink
fix(auth0): user agent for well known keys
Browse files Browse the repository at this point in the history
  • Loading branch information
talboren committed Sep 5, 2024
1 parent a25e63e commit 9f7216f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
auth_domain = os.environ.get("AUTH0_DOMAIN")
if auth_domain:
jwks_uri = f"https://{auth_domain}/.well-known/jwks.json"
jwks_client = jwt.PyJWKClient(jwks_uri, cache_keys=True)
jwks_client = jwt.PyJWKClient(
jwks_uri, cache_keys=True, headers={"User-Agent": "keep-api"}
)
else:
jwks_client = None

Expand Down

0 comments on commit 9f7216f

Please sign in to comment.