Skip to content

Conversation

misja
Copy link
Contributor

@misja misja commented Nov 6, 2013

A HTTP Basic authentication request uses 'Authorization' in the response header. See also http://tools.ietf.org/html/rfc6749#section-2.3.1

A HTTP Basic authentication request uses 'Authorization' in the response header. See also http://tools.ietf.org/html/rfc6749#section-2.3.1
@lepture
Copy link
Owner

lepture commented Nov 6, 2013

@misja I think both are correct.

Actually, it is HTTP_AUTHORIZATION in the environ, and we can get it by Http-Authorization.

@misja
Copy link
Contributor Author

misja commented Nov 6, 2013

It doesn't work for me. Isn't it so that environment variables are
available via flask.request.environ, so in this case request.environ.get('
HTTP_AUTHORIZATION') instead of request.headers.get('Http-Authorization')?

2013/11/6 Hsiaoming Yang notifications@github.com

@misja https://github.com/misja I think both are correct.

Actually, it is HTTP_AUTHORIZATION in the environ, and we can get it by
Http-Authorization.


Reply to this email directly or view it on GitHubhttps://github.com//pull/52#issuecomment-27879179
.

Misja Hoebe

lepture added a commit that referenced this pull request Nov 7, 2013
Correct header authorization field
lepture added a commit that referenced this pull request Nov 7, 2013
@lepture lepture merged commit d2c3d36 into lepture:master Nov 7, 2013
@lepture
Copy link
Owner

lepture commented Nov 7, 2013

@misja Yes, you are right.

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.

2 participants