Skip to content

Commit

Permalink
fix the CAS login test (#829)
Browse files Browse the repository at this point in the history
  • Loading branch information
Naugrimm authored Mar 24, 2020
1 parent 39f2455 commit 07884c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/12login/02cas.pl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use URI::Escape;

sub wait_for_cas_request
{
my ( $expected_path, %params ) = @_;
Expand Down Expand Up @@ -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";

Expand Down

0 comments on commit 07884c2

Please sign in to comment.