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 extra claims to authproxy connector #2851

Merged
merged 3 commits into from
Dec 28, 2023

Conversation

mkjpryor
Copy link
Contributor

@mkjpryor mkjpryor commented Mar 8, 2023

Overview

This PR adds support for some additional headers to be propagated into claims in the authproxy connector.

What this PR does / why we need it

I am using Dex with authproxy to turn an existing IdP, whose code is not under my control, into an OIDC provider. I want to be able to propagate the user ID and email address from the underlying IdP as OIDC claims alongside the username, which is not possible with the current headers and claims supported by the authproxy connector.

This PR adds support for two extra headers that can be used to propagate the user ID and email from the underlying IdP, and sets the claims. When these additional headers are not set, it reduces to the previous mode.

Special notes for your reviewer

Does this PR introduce a user-facing change?

Adds support for two additional headers, for user ID and email, to the authproxy connector.

@mkjpryor mkjpryor force-pushed the feature/authproxy-extra-headers branch 2 times, most recently from 38d0bce to 5e97a76 Compare March 9, 2023 13:34
@mkjpryor mkjpryor force-pushed the feature/authproxy-extra-headers branch from 5e97a76 to 497483d Compare June 20, 2023 08:01
@nabokihms nabokihms self-requested a review June 21, 2023 14:42
Copy link
Member

@nabokihms nabokihms left a comment

Choose a reason for hiding this comment

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

The feature looks good to me.

  1. The test is required.
  2. Linter has its suggestions that should be satisfied 🙂

@mkjpryor mkjpryor force-pushed the feature/authproxy-extra-headers branch from 497483d to b07a9fc Compare November 10, 2023 13:45
@mkjpryor
Copy link
Contributor Author

@nabokihms

I have rebased, addressed the linting issues and added an extra test. Can you re-review please?

@nabokihms nabokihms merged commit 366e53c into dexidp:master Dec 28, 2023
2 checks passed
@nabokihms
Copy link
Member

@mkjpryor sorry for the long delay. Merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants