Skip to content

Commit 20642d4

Browse files
providers/proxy: fix redirect_uri (cherry-pick #12121) (#12125)
providers/proxy: fix redirect_uri (#12121) Signed-off-by: Jens Langhammer <jens@goauthentik.io> Co-authored-by: Jens L. <jens@goauthentik.io>
1 parent a9776a8 commit 20642d4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

authentik/providers/proxy/models.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,9 @@ def _get_callback_url(uri: str) -> list[RedirectURI]:
3434
return [
3535
RedirectURI(
3636
RedirectURIMatchingMode.STRICT,
37-
urljoin(uri, "outpost.goauthentik.io/callback")
38-
+ f"\\?{OUTPOST_CALLBACK_SIGNATURE}=true",
37+
urljoin(uri, "outpost.goauthentik.io/callback") + f"?{OUTPOST_CALLBACK_SIGNATURE}=true",
3938
),
40-
RedirectURI(RedirectURIMatchingMode.STRICT, uri + f"\\?{OUTPOST_CALLBACK_SIGNATURE}=true"),
39+
RedirectURI(RedirectURIMatchingMode.STRICT, uri + f"?{OUTPOST_CALLBACK_SIGNATURE}=true"),
4140
]
4241

4342

0 commit comments

Comments
 (0)