From 39f38b65fd828c1dd29361a7d61d8685834cf229 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Thu, 14 Aug 2014 13:54:35 +0200 Subject: Make reverse-proxyable. MulkyID used to be unable to run behind a reverse proxy. This is fixed by using the real_domain configuration value for redirects instead of the domain name sent by the client. --- www/login.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'www/login.pl') diff --git a/www/login.pl b/www/login.pl index 2be2b77..363f243 100755 --- a/www/login.pl +++ b/www/login.pl @@ -74,7 +74,7 @@ while (my $cgi = new CGI::Fast) { when ('google') { my $g = Net::Google::FederatedLogin->new( cgi => $cgi, - return_to => $cgi->url() + return_to => reluri($cgi, "login.pl") ); $g->verify_auth or die "Could not verify the OpenID assertion!"; my $ext = $g->get_extension('http://openid.net/srv/ax/1.0'); -- cgit v1.2.3