Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
ericchiang merged 1 commit into
dexidp:masterfrom
jacksontj:userinfo
May 23, 2019
Merged

Add option in oidc to hit the optional userinfo endpoint#1433
ericchiang merged 1 commit into
dexidp:masterfrom
jacksontj:userinfo

Conversation

@jacksontj
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

@ericchiang
Copy link
Copy Markdown
Contributor

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

@jacksontj
Copy link
Copy Markdown
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
Copy Markdown
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

Comment thread Documentation/connectors/oidc.md Outdated
Comment thread connector/oidc/oidc.go Outdated
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
Copy Markdown
Contributor Author

@ericchiang Updated to address comments.

Copy link
Copy Markdown
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