providers/proxy: fix redirect_uri (cherry-pick #12121) (#12126)

providers/proxy: fix redirect_uri (#12121)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Co-authored-by: Jens L. <jens@goauthentik.io>
This commit is contained in:
gcp-cherry-pick-bot[bot]
2024-11-21 17:21:44 +01:00
committed by GitHub
parent c99a33baee
commit 48854fa72a

View File

@ -34,10 +34,9 @@ def _get_callback_url(uri: str) -> list[RedirectURI]:
return [ return [
RedirectURI( RedirectURI(
RedirectURIMatchingMode.STRICT, RedirectURIMatchingMode.STRICT,
urljoin(uri, "outpost.goauthentik.io/callback") urljoin(uri, "outpost.goauthentik.io/callback") + f"?{OUTPOST_CALLBACK_SIGNATURE}=true",
+ f"\\?{OUTPOST_CALLBACK_SIGNATURE}=true",
), ),
RedirectURI(RedirectURIMatchingMode.STRICT, uri + f"\\?{OUTPOST_CALLBACK_SIGNATURE}=true"), RedirectURI(RedirectURIMatchingMode.STRICT, uri + f"?{OUTPOST_CALLBACK_SIGNATURE}=true"),
] ]