summary refs log tree commit diff
path: root/tests/rest/client/v2_alpha/test_auth.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-04-23 15:44:57 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2021-04-23 15:44:57 +0100
commit7ce8d7877ed30a943723bb403c70626e87af6055 (patch)
tree6733d5d1155ca001e43aacd387c2a3c3226c2917 /tests/rest/client/v2_alpha/test_auth.py
parentMerge commit 'b5c4fe197' into anoa/dinsic_release_1_31_0 (diff)
parentAllow bytecode again (#9502) (diff)
downloadsynapse-7ce8d7877ed30a943723bb403c70626e87af6055.tar.xz
Merge commit 'e12077a78' into anoa/dinsic_release_1_31_0
Diffstat (limited to 'tests/rest/client/v2_alpha/test_auth.py')
-rw-r--r--tests/rest/client/v2_alpha/test_auth.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/rest/client/v2_alpha/test_auth.py b/tests/rest/client/v2_alpha/test_auth.py

index c26ad824f7..9734a2159a 100644 --- a/tests/rest/client/v2_alpha/test_auth.py +++ b/tests/rest/client/v2_alpha/test_auth.py
@@ -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