Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to load from file ? #158

Closed
HuEric opened this issue Aug 10, 2020 · 2 comments · Fixed by #191
Closed

How to load from file ? #158

HuEric opened this issue Aug 10, 2020 · 2 comments · Fixed by #191

Comments

@HuEric
Copy link

HuEric commented Aug 10, 2020

I would like to load jwks.json from file for AWS Lambda authorizer, avoiding to make unnecessary calls to Auth0 when receiving a lot of requests.
How could I achieve this ?

Thank you

@ottokruse
Copy link

Sketchy idea --> use a HTTP mock: https://github.com/nock/nock

How would you handle key rotation though? The keys might change, which would necessitate fetching the jwks uri again

@jimmyjames jimmyjames self-assigned this Aug 12, 2020
@jimmyjames
Copy link
Contributor

Hi @HuEric, currently this library doesn't support fetching the keys from a file. I think this is something we should enable though, so I'll pick this one up hopefully later this week or early next week.

Do note though that the library supports caching, which minimizes excessive calls to the JWKS endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants