8000 Add option in oidc to hit the optional userinfo endpoint by jacksontj · Pull Request #1433 · dexidp/dex · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add option in oidc to hit the optional userinfo endpoint #1433

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

Merged
merged 1 commit into from
May 23, 2019

Conversation

jacksontj
Copy link
Contributor
@jacksontj jacksontj commented Apr 24, 2019

Some oauth providers return "thin tokens" which won't include all of the
claims requested. This simply adds an option which will make the oidc
connector use the userinfo endpoint to fetch all the claims.

as an example of an IDP that does this: https://support.okta.com/help/s/article/Okta-Groups-or-Attribute-Missing-from-Id-Token

@jacksontj
Copy link
Contributor Author

cc @ericchiang (as you seem to be the one working with PRs :) )

@ericchiang
Copy link
Contributor

Why is okta not returning username, email or email verified in their id token?

@jacksontj
Copy link
Contributor Author

I'm not sure I follow the question? This PR (and the linked docs) talk about some claims missing due to "think tokens". I have provided both a link to their documentation which explains it and code which supports this functionality. As to why this provider decided to do thin tokens I cannot say, but from what I understand this is allowed by spec -- so it seems reasonable to me that dex should optionally support it.

Copy link
Contributor
@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.

Couple comments. Please squash your commits when updating

Some oauth providers return "thin tokens" which won't include all of the
claims requested. This simply adds an option which will make the oidc
connector use the userinfo endpoint to fetch all the claims.
@jacksontj
Copy link
Contr 8000 ibutor Author

@ericchiang Updated to address comments.

Copy link
Contributor
@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.

thanks! :shipit:

@ericchiang ericchiang merged commit 59560c9 into dexidp:master May 23, 2019
@jacksontj jacksontj deleted the userinfo branch May 23, 2019 16:47
mmrath pushed a commit to mmrath/dex that referenced this pull request Sep 2, 2019
Add option in oidc to hit the optional userinfo endpoint
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.

2 participants
0