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

Cache JWKS #109

Open
RichDom2185 opened this issue Aug 23, 2023 · 0 comments
Open

Cache JWKS #109

RichDom2185 opened this issue Aug 23, 2023 · 0 comments

Comments

@RichDom2185
Copy link
Member

func getJWKS(endpointURL string) jwk.Set {
// Singleton
// TODO: Refresh every X minutes
if jwks == nil {
setJwkFromEndpoint(endpointURL)
}
return *jwks
}

Refer to https://raw.githubusercontent.com/lestrrat-go/jwx/v2/examples/jwk_cache_example_test.go.

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

No branches or pull requests

1 participant