From d2c3d362957a7c6155fe6c48a340fa9eb95c5d4a Mon Sep 17 00:00:00 2001 From: misja Date: Wed, 6 Nov 2013 14:59:23 +0100 Subject: [PATCH] Correct header authorization field A HTTP Basic authentication request uses 'Authorization' in the response header. See also http://tools.ietf.org/html/rfc6749#section-2.3.1 --- flask_oauthlib/provider/oauth2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_oauthlib/provider/oauth2.py b/flask_oauthlib/provider/oauth2.py index 02d383d4..da954d33 100644 --- a/flask_oauthlib/provider/oauth2.py +++ b/flask_oauthlib/provider/oauth2.py @@ -459,7 +459,7 @@ def authenticate_client(self, request, *args, **kwargs): .. _`Section 3.2.1`: http://tools.ietf.org/html/rfc6749#section-3.2.1 """ - auth = request.headers.get('Http-Authorization', None) + auth = request.headers.get('Authorization', None) log.debug('Authenticate client %r', auth) if auth: try: