From 1faba11a573adb07bf08341b001549ed9804d299 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 18 Jun 2022 13:13:36 +0200 Subject: [PATCH] providers/oauth2: add test to ensure capitalised redirect_uri isn't changed Signed-off-by: Jens Langhammer #3114 --- authentik/providers/oauth2/tests/test_token.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authentik/providers/oauth2/tests/test_token.py b/authentik/providers/oauth2/tests/test_token.py index 0da18abcc..203fd7686 100644 --- a/authentik/providers/oauth2/tests/test_token.py +++ b/authentik/providers/oauth2/tests/test_token.py @@ -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}", )