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

OIDC Claims Refactoring #882

Merged
merged 1 commit into from
Mar 31, 2017
Merged

OIDC Claims Refactoring #882

merged 1 commit into from
Mar 31, 2017

Conversation

russjones
Copy link
Contributor

Purpose

Not all services that support OIDC return all claims within the ID token, some services return claims from the UserInfo endpoint. This PR changes the behavior of Teleport to obtain claims from both endpoints and merge them.

Implementation

In ValidateOIDCAuthCallback, extract claims from both the ID token as well as the UserInfo endpoint (which is itself obtained from the ProviderConfig) and then merge the two sets of claims and return the merged set.

@russjones russjones requested a review from klizhentas March 29, 2017 23:27
@russjones russjones force-pushed the rjones/oidc-debugging branch from f253191 to 8259a03 Compare March 30, 2017 23:41
fallback to Base64 decoding if Base64-URL decoding fails.
@russjones russjones force-pushed the rjones/oidc-debugging branch from 6f89850 to c795689 Compare March 31, 2017 00:40
@russjones russjones merged commit b02744d into master Mar 31, 2017
@russjones russjones deleted the rjones/oidc-debugging branch March 31, 2017 00:53
@russjones russjones mentioned this pull request Oct 6, 2017
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