mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-09-07 04:01:52 +00:00
Use a non-empty RelayState for user interactive auth with SAML. (#7552)
This commit is contained in:
parent
710d958c64
commit
66f2ebc22f
1
changelog.d/7552.bugfix
Normal file
1
changelog.d/7552.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Fix "Missing RelayState parameter" error when using user interactive authentication with SAML for some SAML providers.
|
@ -177,7 +177,10 @@ class AuthRestServlet(RestServlet):
|
||||
)
|
||||
|
||||
elif self._saml_enabled:
|
||||
client_redirect_url = b""
|
||||
# Some SAML identity providers (e.g. Google) require a
|
||||
# RelayState parameter on requests. It is not necessary here, so
|
||||
# pass in a dummy redirect URL (which will never get used).
|
||||
client_redirect_url = b"unused"
|
||||
sso_redirect_url = self._saml_handler.handle_redirect_request(
|
||||
client_redirect_url, session
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user