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

Add support for code_challenge_methods_supported #408

Open
wants to merge 1 commit into
base: v3
Choose a base branch
from

Conversation

nabokihms
Copy link

This is required if an RP wants to use PKCE, but doesn't know whether the provider supports the code challenge or not.

This is required if an RP wants to use PKCE, but doesn't know whether the provider supports the code challenge or not.
Copy link
Collaborator

@ericchiang ericchiang left a comment

Choose a reason for hiding this comment

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

Provider.Claims() already lets you access the OpenID Connect metadata

https://pkg.go.dev/github.com/coreos/go-oidc/v3/oidc#Provider.Claims

Also, what spec is this from and what providers implement this? I'm not seeing it the discovery spec:

https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata

I may be missing something, but the added code doesn't actually appear to be used anywhere through the public APIs? E.g. codeChallengeMethods is assigned but never read or exported. Is this part of some larger change?

@nabokihms
Copy link
Author

This is from the Rfc 8414 https://www.rfc-editor.org/rfc/rfc8414.html (missed that this is not a part of the oidc spec).
I think claims is what I need, thank you for pointing me.

@ericchiang
Copy link
Collaborator

Thanks! For what it's worth, I think adding support for supplementary specs is great. I'd just want to figure out if there's any additional API we can present more than parsing the string.

E.g. what we do for the at_hash support or device authorization #365

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

Successfully merging this pull request may close these issues.

None yet

2 participants