Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Pass in the original email address too as X-Forwarded-Email. #35

Merged
merged 1 commit into from
Nov 8, 2014

Conversation

rogerhu
Copy link
Contributor

@rogerhu rogerhu commented Nov 8, 2014

Need this info to be able to determine whether to login a user on some of our apps.

@rogerhu rogerhu force-pushed the email branch 2 times, most recently from 19211ab to 150c77c Compare November 8, 2014 07:50
@@ -368,6 +368,7 @@ func (p *OauthProxy) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
if *passBasicAuth {
req.SetBasicAuth(user, "")
req.Header["X-Forwarded-User"] = []string{user}
req.Header["X-Remote-User"] = []string{email}
Copy link
Member

Choose a reason for hiding this comment

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

What do you think about X-Forwarded-Email?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea..changed!

@jehiah
Copy link
Member

jehiah commented Nov 8, 2014

This is a great idea; It makes a lot of sense when allowing auth to more than a single google apps domain.

@adepue
Copy link

adepue commented Nov 8, 2014

👍 specifically splunk requires this for us! And that requirement is for x-forwarded-user

@jehiah
Copy link
Member

jehiah commented Nov 8, 2014

@adepue are you saying splunk requires the email address in that field?

@adepue
Copy link

adepue commented Nov 8, 2014

@jehiah yep that's exactly it. Splunk Sso integration depends on the full email address in that field.

@rogerhu rogerhu changed the title Pass in the original email address too as X-Remote-User. Pass in the original email address too as X-Forwarded-Email. Nov 8, 2014
@adepue
Copy link

adepue commented Nov 8, 2014

X-Forwarded-Email should be fine. We can reconfigure splunk if needed, as long as the full email comes through. Thanks!

@akshayjshah
Copy link

👍 very helpful!

jehiah added a commit that referenced this pull request Nov 8, 2014
Pass in the original email address too as X-Forwarded-Email.
@jehiah jehiah merged commit 2f16534 into bitly:master Nov 8, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants