Skip to content

Commit

Permalink
updated the doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Chigala committed Sep 17, 2023
1 parent 6ee350c commit 19215d4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/docs/guides/backend.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,16 @@ async def auth(request: Request, call_next: Any):
return deny()

try:
jwks_client = jwt.PyJWKClient(
# Disable SSL certificate verification while in development

ssl_context = ssl.create_default_context()
ssl_context.check_hostname = False
ssl_context.verify_mode = ssl.CERT_NONE

jwks_client = jwt.PyJWKClient(
HANKO_API_URL + "/.well-known/jwks.json", ssl_context=ssl_context
)
jwks_client = jwt.PyJWKClient(
HANKO_API_URL + "/.well-known/jwks.json", ssl_context=ssl_context
)
signing_key = jwks_client.get_signing_key_from_jwt(token)
Expand Down

0 comments on commit 19215d4

Please sign in to comment.