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

Removing name from authentication header 🎉 #73

Merged
merged 11 commits into from
Apr 25, 2017

Conversation

virtser
Copy link
Contributor

@virtser virtser commented Apr 24, 2017

Fixes "The header content contains invalid characters" issue.

closes dorbel-tech/dorbel-app#868

@virtser virtser self-assigned this Apr 24, 2017
@virtser virtser added the review label Apr 24, 2017
@@ -196,10 +196,10 @@ function* parseAuthToken(next) {

if (profile) {
// Add profile to request headers. This request is proxied to the backend APIS
// IMPORANT!!! Please make sure not to add here any data here that is not plain ASCII, like user name, etc..
this.request.headers[userHeaderKey] = JSON.stringify({
id: profile.dorbel_user_id,
email: profile.email,
Copy link
Contributor Author

@virtser virtser Apr 24, 2017

Choose a reason for hiding this comment

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

@avnersorek do we really need user email here?

@virtser virtser merged commit 3e541d7 into master Apr 25, 2017
@virtser virtser deleted the hotfix/remove-header-name branch April 25, 2017 08:32
@virtser virtser removed the review label Apr 25, 2017
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.

The header content contains invalid characters
4 participants