mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-09 12:27:46 +00:00
Allow token_info response to use 'scopes' key (#565)
This commit is contained in:
committed by
Henning Jacobs
parent
4486438e70
commit
a4cabb23ae
@@ -111,3 +111,8 @@ def test_checking_that_client_token_has_all_necessary_scopes(
|
||||
headers = {"Authorization": "Bearer has_myscope_otherscope"}
|
||||
response = app_client.get('/v1.0/more-than-one-scope', headers=headers) # type: flask.Response
|
||||
assert response.status_code == 200
|
||||
|
||||
# has all necessary scopes but under key 'scopes'
|
||||
headers = {"Authorization": "Bearer has_scopes_in_scopes_with_s"}
|
||||
response = app_client.get('/v1.0/more-than-one-scope', headers=headers) # type: flask.Response
|
||||
assert response.status_code == 200
|
||||
|
||||
Reference in New Issue
Block a user