From 86ad48784050724471446d949cde843a4264eeb6 Mon Sep 17 00:00:00 2001 From: Erik Anders Date: Wed, 11 Mar 2020 17:39:37 +0100 Subject: [PATCH] fix the CAS login test see https://github.com/matrix-org/synapse/pull/6634 --- tests/12login/02cas.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/12login/02cas.pl b/tests/12login/02cas.pl index 824f0286c..56e7173bc 100644 --- a/tests/12login/02cas.pl +++ b/tests/12login/02cas.pl @@ -1,3 +1,5 @@ +use URI::Escape; + sub wait_for_cas_request { my ( $expected_path, %params ) = @_; @@ -109,12 +111,12 @@ sub wait_for_cas_request do => sub { my ( $http, $homeserver_info ) = @_; - my $HS_URI = $homeserver_info->client_location; - # the redirectUrl we send to /login/cas/redirect, which is where we # hope to get redirected back to my $REDIRECT_URL = "https://client?p=http%3A%2F%2Fserver"; + my $HS_URI = $homeserver_info->client_location . "/_matrix/client/r0/login/cas/ticket?redirectUrl=" . uri_escape($REDIRECT_URL); + # the ticket our mocked-up CAS server "generates" my $CAS_TICKET = "goldenticket";