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

cacheing well-known files #436

Open
amir4895 opened this issue Aug 19, 2024 · 2 comments
Open

cacheing well-known files #436

amir4895 opened this issue Aug 19, 2024 · 2 comments

Comments

@amir4895
Copy link

hi all,
Im using go-oidc for a while now, where Azure AD is the IDP.
lately Azure having issues once in a while in returning the well-known config file in the Provider GET request.
this causing timeout in my software and that is messy .
I wonder if the package have some kind of caching for that purpose and i didn't see it ,
Amir

@ericchiang
Copy link
Collaborator

The suggested pattern of this program is to use NewProvider() once, construct a long lived IDTokenVerifier then use that to verify tokens. In that case, you "cache" the discovery data manually.

@amir4895
Copy link
Author

@ericchiang maybe im missing something,,,how can i create IDTokenVerifier , all attributes are not exposed in the returned provider...

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

2 participants