Skip to content

Commit 19215d4

Browse files
committed
updated the doc
1 parent 6ee350c commit 19215d4

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/docs/guides/backend.mdx

+10-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,16 @@ async def auth(request: Request, call_next: Any):
215215
return deny()
216216

217217
try:
218-
jwks_client = jwt.PyJWKClient(
218+
# Disable SSL certificate verification while in development
219+
220+
ssl_context = ssl.create_default_context()
221+
ssl_context.check_hostname = False
222+
ssl_context.verify_mode = ssl.CERT_NONE
223+
224+
jwks_client = jwt.PyJWKClient(
225+
HANKO_API_URL + "/.well-known/jwks.json", ssl_context=ssl_context
226+
)
227+
jwks_client = jwt.PyJWKClient(
219228
HANKO_API_URL + "/.well-known/jwks.json", ssl_context=ssl_context
220229
)
221230
signing_key = jwks_client.get_signing_key_from_jwt(token)

0 commit comments

Comments
 (0)