Skip to content

Conversation

@nicknisi
Copy link
Member

Description

This PR adds a cache module and tests, and then uses that to cache the return value of fetching JWKS per client_id.

Documentation

Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.

[ ] Yes

If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.

Fixes #334

@nicknisi nicknisi requested a review from PaulAsjes January 13, 2025 17:43
@nicknisi nicknisi force-pushed the nicknisi/cached-jwks branch from 3749120 to 87e28cd Compare January 13, 2025 19:30
Copy link
Contributor

@PaulAsjes PaulAsjes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small naming nit, otherwise good!

@nicknisi nicknisi requested a review from PaulAsjes January 16, 2025 15:15
@nicknisi nicknisi force-pushed the nicknisi/cached-jwks branch from 2f20578 to c2f5db1 Compare January 16, 2025 15:23
indicate that it's in seconds very explicitly
@nicknisi nicknisi merged commit f2f06e1 into workos:main Jan 16, 2025
4 checks passed
@nicknisi nicknisi deleted the nicknisi/cached-jwks branch January 16, 2025 16:08
@nicknisi nicknisi mentioned this pull request Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Cache Remote JWKS Fetch

2 participants