summaryrefslogtreecommitdiff
path: root/tests/oauth2/rfc6749/endpoints/test_revocation_endpoint.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 /tests/oauth2/rfc6749/endpoints/test_revocation_endpoint.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 'tests/oauth2/rfc6749/endpoints/test_revocation_endpoint.py')
-rw-r--r--tests/oauth2/rfc6749/endpoints/test_revocation_endpoint.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/oauth2/rfc6749/endpoints/test_revocation_endpoint.py b/tests/oauth2/rfc6749/endpoints/test_revocation_endpoint.py
index db562c8..8a434e2 100644
--- a/tests/oauth2/rfc6749/endpoints/test_revocation_endpoint.py
+++ b/tests/oauth2/rfc6749/endpoints/test_revocation_endpoint.py
@@ -49,7 +49,7 @@ class RevocationEndpointTest(TestCase):
('token_type_hint', 'access_token')])
h, b, s = self.endpoint.create_revocation_response(self.uri,
headers=self.headers, body=body)
- self.assertEqual(h, {"WWW-Authenticate": "Basic"})
+ self.assertEqual(h, {"WWW-Authenticate": "Bearer, error=invalid_client"})
self.assertEqual(loads(b)['error'], 'invalid_client')
self.assertEqual(s, 401)
@@ -72,7 +72,7 @@ class RevocationEndpointTest(TestCase):
('token_type_hint', 'access_token')])
h, b, s = self.endpoint.create_revocation_response(self.uri,
headers=self.headers, body=body)
- self.assertEqual(h, {"WWW-Authenticate": "Basic"})
+ self.assertEqual(h, {"WWW-Authenticate": "Bearer, error=invalid_client"})
self.assertEqual(loads(b)['error'], 'invalid_client')
self.assertEqual(s, 401)