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

well-known URLs not accessible from Provider #424

Open
tfahrenreich opened this issue Apr 3, 2024 · 1 comment
Open

well-known URLs not accessible from Provider #424

tfahrenreich opened this issue Apr 3, 2024 · 1 comment

Comments

@tfahrenreich
Copy link

It would be helpful to be able to call ProviderConfig() on Provider to return a reusable config, or make the fields not private

I'm working on a project that requires caching the OpenID discovery request.

From Provider I'm trying to extract the fields needed to create a ProviderConfig which I can then cache and recall using ProviderConfig.NewProvider

Is there a reason to keep fields on Provider private? Some are available through UserInfoEndpoint and Endpoint. These aren't sensitive URLs since they're publicly available through discovery.

Please let me know if there's another method for retrieving these fields that I might be missing. Thanks!

@ericchiang
Copy link
Collaborator

Would you mind showing an example of what you're trying to do? Are you trying to serialize the state of a Provider instance?

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