mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 15:05:03 -04:00
SSO: redirect to public URL before setting cookies (#9436)
... otherwise, we don't get the cookie back.
This commit is contained in:
parent
e53f11bd62
commit
15090de850
7 changed files with 130 additions and 28 deletions
|
@ -161,7 +161,11 @@ class UIAuthTests(unittest.HomeserverTestCase):
|
|||
|
||||
def default_config(self):
|
||||
config = super().default_config()
|
||||
config["public_baseurl"] = "https://synapse.test"
|
||||
|
||||
# public_baseurl uses an http:// scheme because FakeChannel.isSecure() returns
|
||||
# False, so synapse will see the requested uri as http://..., so using http in
|
||||
# the public_baseurl stops Synapse trying to redirect to https.
|
||||
config["public_baseurl"] = "http://synapse.test"
|
||||
|
||||
if HAS_OIDC:
|
||||
# we enable OIDC as a way of testing SSO flows
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue