environments/ppa-mbqj77/deployments/1
Clément OUDOT 7 years ago
parent 231a024606
commit 9f72caa5d8
  1. 2
      _example/test/cas.pl
  2. 2
      _example/test/index.pl
  3. 2
      _example/test/oauth2.pl

@ -7,7 +7,7 @@ use AuthCAS;
# Configuration
my $host = $ENV{HTTP_HOST};
my ( $domain, $port ) = ( $host =~ /\w+\.([^:]*?)(:\d+)?/ );
my ( $domain, $port ) = ( $host =~ /\w+\.([^:]+)(:\d+)?/ );
my $protocol = ( $ENV{HTTPS} =~ /^on$/i ) ? "https" : "http";
my $portal_url = "$protocol://auth.$domain$port";
my $cas_url = "$portal_url/cas";

@ -15,7 +15,7 @@ my $color = $cgi->param("color") || "#ddd";
# Local parameters
my $host = $ENV{HTTP_HOST};
my ( $domain, $port ) = ( $host =~ /\w+\.([^:]*?)(:\d+)?/ );
my ( $domain, $port ) = ( $host =~ /\w+\.([^:]+)(:\d+)?/ );
my $protocol = ( $ENV{HTTPS} =~ /^on$/i ) ? "https" : "http";
my $portal_url = "$protocol://auth.$domain$port";
my $manager_url = "$protocol://manager.$domain$port";

@ -19,7 +19,7 @@ use Digest::SHA
# Configuration
#==============================================================================
my $host = $ENV{HTTP_HOST};
my ( $domain, $port ) = ( $host =~ /\w+\.([^:]*?)(:\d+)?/ );
my ( $domain, $port ) = ( $host =~ /\w+\.([^:]+)(:\d+)?/ );
my $protocol = ( $ENV{HTTPS} =~ /^on$/i ) ? "https" : "http";
my $portal_url = "$protocol://auth.$domain$port";
my $client_id = "lemonldap";

Loading…
Cancel
Save