Skip to content

Commit 07884c2

Browse files
authored
fix the CAS login test (#829)
see matrix-org/synapse#6634
1 parent 39f2455 commit 07884c2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/12login/02cas.pl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
use URI::Escape;
2+
13
sub wait_for_cas_request
24
{
35
my ( $expected_path, %params ) = @_;
@@ -109,12 +111,12 @@ sub wait_for_cas_request
109111
do => sub {
110112
my ( $http, $homeserver_info ) = @_;
111113

112-
my $HS_URI = $homeserver_info->client_location;
113-
114114
# the redirectUrl we send to /login/cas/redirect, which is where we
115115
# hope to get redirected back to
116116
my $REDIRECT_URL = "https://client?p=http%3A%2F%2Fserver";
117117

118+
my $HS_URI = $homeserver_info->client_location . "/_matrix/client/r0/login/cas/ticket?redirectUrl=" . uri_escape($REDIRECT_URL);
119+
118120
# the ticket our mocked-up CAS server "generates"
119121
my $CAS_TICKET = "goldenticket";
120122

0 commit comments

Comments
 (0)