providers/oauth2: add test to ensure capitalised redirect_uri isn't changed

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

#3114
This commit is contained in:
Jens Langhammer 2022-06-18 13:13:36 +02:00
parent f0c72e8536
commit 1faba11a57
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ class TestToken(OAuthTestCase):
client_id=generate_id(),
client_secret=generate_key(),
authorization_flow=create_test_flow(),
redirect_uris="http://testserver",
redirect_uris="http://TestServer",
signing_key=self.keypair,
)
header = b64encode(f"{provider.client_id}:{provider.client_secret}".encode()).decode()
@ -44,7 +44,7 @@ class TestToken(OAuthTestCase):
data={
"grant_type": GRANT_TYPE_AUTHORIZATION_CODE,
"code": code.code,
"redirect_uri": "http://testserver",
"redirect_uri": "http://TestServer",
},
HTTP_AUTHORIZATION=f"Basic {header}",
)