Skip to content

Inject different fetch_jwks function #387

Discussion options

You must be logged in to vote

Hi @panva,

Thank you very much for your answer.

The way I solved it was:

import agentBase, { ClientRequest } from 'agent-base';

const agent = agentBase((req: ClientRequest, opts) => https.globalAgent);

$remote = createRemoteJWKSet(new URL(ssoJWKSurl), { agent });

This way I could tap into the http.Agent used by the fetch_jwks function. To follow the redirects (#240) this wouldn't work, but I suspect doing something with the agent would be the solution.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@panva
Comment options

panva Apr 7, 2022
Maintainer

Answer selected by hannesvdvreken
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants