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

Support the PreferEmailToUser option on PassUserHeaders #434

Merged
merged 1 commit into from Mar 8, 2020
Merged

Support the PreferEmailToUser option on PassUserHeaders #434

merged 1 commit into from Mar 8, 2020

Conversation

jordancrawfordnz
Copy link
Contributor

@jordancrawfordnz jordancrawfordnz commented Mar 3, 2020

Description

Previously in #401, an option was added to support forwarding the email
address as the username to the upstream service when the PassBasicAuth
option is used.

The PassBasicAuth option is not appropriate for all users, with PassUserHeaders
allowing very similar functionality without specifying a basic auth headers.

The PreferEmailToUser option has been expanded to support the PassUserHeaders
option.

Motivation and Context

For the application I run, I use the PassUserHeaders option but since upgrading to 5.0.0 the username header has been providing the user ID, as discussed in #369.

Now, with this change, I can consistently authenticate based on email address.

How Has This Been Tested?

Unit tests have been added for this scenario and I've deployed a build with this change to my server using this new option and confirmed it works successfully.

Checklist:

  • My change requires a change to the documentation or CHANGELOG.
  • I have updated the documentation/CHANGELOG accordingly.
  • I have created a feature (non-master) branch for my PR.

Previously in #401, an option was added to support forwarding the email
address as the username to the upstream service when the PassBasicAuth
option is used.

The PassBasicAuth option is not appropriate for all users, with PassUserHeaders
allowing very similar functionality without specifying a basic auth headers.

The PreferEmailToUser option has been expanded to support the PassUserHeaders
option.
Copy link
Member

@JoelSpeed JoelSpeed left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @jordancrawfordnz 😄

@JoelSpeed JoelSpeed merged commit e3fb25e into oauth2-proxy:master Mar 8, 2020
@jordancrawfordnz
Copy link
Contributor Author

Awesome thanks @JoelSpeed! Any idea when the next release will be tagged? Just keen to get our applications off a manual build I did and back onto an official version.

@JoelSpeed
Copy link
Member

We've been trying to do every 3 months or so, so I'd expect it to be some time in April unless we find some time to do so sooner

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.

None yet

2 participants