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 authproxy preferred_username header #3950

Merged
merged 1 commit into from
Feb 1, 2025

Conversation

kotx
Copy link
Contributor

@kotx kotx commented Jan 27, 2025

Overview

Allows proxies to pass X-Remote-User-Name header to set preferred username. Also adds tests.
Perhaps authproxy should be extended to allow any claims, instead of adding headers for preferred username, picture, etc? But that's out of scope for this PR.

What this PR does / why we need it

Resolves #3876.

Special notes for your reviewer

Defaults to the value of X-Remote-User (user name), to preserve the existing default. But we may want to change this because preferred username = shorthand, and user name = display name.

@nabokihms
Copy link
Member

Looks good and straightforward. Thanks!

@nabokihms nabokihms merged commit 95388bb into dexidp:master Feb 1, 2025
9 of 10 checks passed
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.

Authproxy should have a separate header for username and preferred_username
2 participants