From f0c72e85367524fc1704da3841107029c007e145 Mon Sep 17 00:00:00 2001 From: 9p4 <17993169+9p4@users.noreply.github.com> Date: Sat, 18 Jun 2022 16:38:15 +0530 Subject: [PATCH] providers/oauth2: dont lowercase URL for token requests (#3114) this was a leftover from before the migration regex checking for redirect URIs closes #3076 and #3083 --- authentik/providers/oauth2/views/token.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/providers/oauth2/views/token.py b/authentik/providers/oauth2/views/token.py index a3c8735e2..2964b0a4c 100644 --- a/authentik/providers/oauth2/views/token.py +++ b/authentik/providers/oauth2/views/token.py @@ -89,7 +89,7 @@ class TokenParams: provider=provider, client_id=client_id, client_secret=client_secret, - redirect_uri=request.POST.get("redirect_uri", "").lower(), + redirect_uri=request.POST.get("redirect_uri", ""), grant_type=request.POST.get("grant_type", ""), state=request.POST.get("state", ""), scope=request.POST.get("scope", "").split(),