summaryrefslogtreecommitdiff
path: root/oauthlib/oauth2/rfc6749
diff options
context:
space:
mode:
authorJonathan Huot <jonathan.huot@thomsonreuters.com>2018-12-12 18:08:09 +0100
committerJonathan Huot <jonathan.huot@thomsonreuters.com>2018-12-12 18:08:09 +0100
commita9ec83a40477e6b5b460b6f203607199f5f16779 (patch)
treee44a3498283d987a69eaf5f64de2a993559ae326 /oauthlib/oauth2/rfc6749
parent5f629b5dce3fc6aafb5908480ed241c6f5b4cfbb (diff)
downloadoauthlib-a9ec83a40477e6b5b460b6f203607199f5f16779.tar.gz
Add double-quotes to the key/values in WWW-Authenticate264-status401
Diffstat (limited to 'oauthlib/oauth2/rfc6749')
-rw-r--r--oauthlib/oauth2/rfc6749/errors.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/oauthlib/oauth2/rfc6749/errors.py b/oauthlib/oauth2/rfc6749/errors.py
index e5543b5..ec2b0d1 100644
--- a/oauthlib/oauth2/rfc6749/errors.py
+++ b/oauthlib/oauth2/rfc6749/errors.py
@@ -108,12 +108,12 @@ class OAuth2Error(Exception):
"""
authvalues = [
"Bearer",
- "error={}".format(self.error)
+ 'error="{}"'.format(self.error)
]
if self.description:
- authvalues.append("error_description={}".format(self.description))
+ authvalues.append('error_description="{}"'.format(self.description))
if self.uri:
- authvalues.append("error_uri={}".format(self.uri))
+ authvalues.append('error_uri="{}"'.format(self.uri))
return {"WWW-Authenticate": ", ".join(authvalues)}
return {}