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 ability to set authenticated user in request header #889

Merged
merged 6 commits into from
Dec 16, 2016

Conversation

ViViDboarder
Copy link
Contributor

Some web applications provide the ability to authorize users based on
the authenticated from Basic Auth. This patch provides a way to set a
key to which the authenticated user can be set in the Header.

For example, if I set HeaderValue = "X-WebAuth-User" and authenticate,
my application will be able to read my user name from that header and
provide me with the proper access.

This fixes #802

Some web applications provide the ability to authorize users based on
the authenticated from Basic Auth. This patch provides a way to set a
key to which the authenticated user can be set in the Header.

For example, if I set `HeaderValue = "X-WebAuth-User"` and authenticate,
my application will be able to read my user name from that header and
provide me with the proper access.

This fixes traefik#802
@ViViDboarder
Copy link
Contributor Author

Let me know if there is additional documentation or tests you'd like to see. Also, I'm happy to squash commit and re-open to clean out the documentation commit and misspelling.

Copy link
Contributor

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

LGTM 🐮
/cc @containous/traefik

@ViViDboarder
Copy link
Contributor Author

ViViDboarder commented Dec 8, 2016 via email

Copy link
Member

@emilevauge emilevauge 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 @ViViDboarder
Please squash commits while merging

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.

Write authenticated user to header key
4 participants