summaryrefslogtreecommitdiff
path: root/oauthlib/oauth2/rfc6749/grant_types/refresh_token.py
diff options
context:
space:
mode:
authorJonathan Huot <jonathan.huot@thomsonreuters.com>2018-12-12 17:58:45 +0100
committerJonathan Huot <jonathan.huot@thomsonreuters.com>2018-12-12 17:58:45 +0100
commit5f629b5dce3fc6aafb5908480ed241c6f5b4cfbb (patch)
tree36d31e457d148bb15c9c048409756e2754030a01 /oauthlib/oauth2/rfc6749/grant_types/refresh_token.py
parentffa87c7ec828e5c0a7c68a2197030f20b15ec621 (diff)
downloadoauthlib-5f629b5dce3fc6aafb5908480ed241c6f5b4cfbb.tar.gz
Used WWW-Authenticate and auth-param values as RFC6750 described it.
It misses the possibility to add scope= and realm= at the moment, but it should be a step forward into the right direction.
Diffstat (limited to 'oauthlib/oauth2/rfc6749/grant_types/refresh_token.py')
-rw-r--r--oauthlib/oauth2/rfc6749/grant_types/refresh_token.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/oauthlib/oauth2/rfc6749/grant_types/refresh_token.py b/oauthlib/oauth2/rfc6749/grant_types/refresh_token.py
index d2b3f6f..67d65a7 100644
--- a/oauthlib/oauth2/rfc6749/grant_types/refresh_token.py
+++ b/oauthlib/oauth2/rfc6749/grant_types/refresh_token.py
@@ -64,8 +64,7 @@ class RefreshTokenGrant(GrantTypeBase):
self.validate_token_request(request)
except errors.OAuth2Error as e:
log.debug('Client error in token request, %s.', e)
- if e.status_code == 401:
- headers.update({"WWW-Authenticate": "Basic"})
+ headers.update(e.headers)
return headers, e.json, e.status_code
token = token_handler.create_token(request,