How to use JWKS behind a proxy? #412
Unanswered
justin0108
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Im using Jose 4.5.1
In my environment, I need to go through a proxy to hit internet.
For example to issue to Axios GET call, I need to do the following
axios.get('https://testendpoint.com', {proxy: SERVER_PROXY})
Can I check how to use JWKS behind a proxy server?
Currently I am doing this
jose.createRemoteJWKSet(new URL('https://externalJwksEndpoint/.well-known/keys')
The documentation in https://github.com/panva/jose/blob/main/docs/interfaces/jwks_remote.RemoteJWKSetOptions.md seems to suggest it can be done behind a proxy. But I am not sure how to go about doing it. Would appreciate if I have some guidance.
Beta Was this translation helpful? Give feedback.
All reactions