Skip to content

Commit

Permalink
fix the CAS login test
Browse files Browse the repository at this point in the history
  • Loading branch information
Naugrimm committed Mar 11, 2020
1 parent 955648a commit 86ad487
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 86ad487

Please sign in to comment.