SAML Common Domain Cookie
The SAML CDC feature seems not working
First, I tried to create the local CDC page (CDC writer URL), like this:
# vi /usr/share/lemonldap-ng/portal/htdocs/cdc.fcgi
#!/usr/bin/perl
use Plack::Handler::FCGI;
use Lemonldap::NG::Portal::CDC;
# Roll your own
my $server = Plack::Handler::FCGI->new();
$server->run( Lemonldap::NG::Portal::CDC->run( {} ) );
# chmod +x /usr/share/lemonldap-ng/portal/htdocs/cdc.fcgi
When accessing to https://auth.openid.club/cdc.fcgi, we have this error:
==> /var/log/apache2/error.log <==
[Wed Jul 18 09:21:21.548027 2018] [fcgid:warn] [pid 94631] (104)Connection reset by peer: [client 92.184.102.58:40262] mod_fcgid: error reading data from FastCGI server
[Wed Jul 18 09:21:21.548173 2018] [core:error] [pid 94631] [client 92.184.102.58:40262] End of script output before headers: cdc.fcgi
==> /var/log/apache2/other_vhosts_access.log <==
auth.openid.club:443 92.184.102.58 - - [18/Jul/2018:09:21:21 +0200] "GET /cdc.fcgi HTTP/1.1" 302 725 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"
Then, when calling the CDC code from the Auth::SAML module, we have another error:
==> /var/log/apache2/error.log <==
[debug] Check configuration for Lemonldap::NG::Handler::PSGI::Main
[debug] Get configuration from cache without verification.
[debug] Lemonldap::NG::Handler::PSGI::Main: configuration is up to date
[info] No cookie found
[debug] Build URL https://auth.openid.club/
[debug] Redirect 92.184.102.58 to portal (url was /)
[debug] User not authenticated, Try in use, cancel redirection
[debug] Start routing default route
[debug] Processing restoreArgs
[debug] Processing controlUrl
[debug] Processing code ref
[debug] Processing code ref
[debug] Launching ::Issuer::SAML::storeEnv
[debug] Processing code ref
[debug] Launching ::Issuer::CAS::storeEnvAndCheckGateway
[debug] Processing code ref
[debug] Launching ::Issuer::OpenIDConnect::exportRequestParameters
[debug] Processing code ref
[debug] Launching ::Plugins::AutoSignin::check
[debug] Processing extractFormInfo
[debug] Will try to use Common Domain Cookie for IDP resolution
[Wed Jul 18 09:22:33.016415 2018] [fcgid:warn] [pid 94498] [client 92.184.102.58:40270] mod_fcgid: stderr: Can't locate object method "self_url" via package "Lemonldap::NG::Portal::Auth::SAML" at /usr/share/perl5/Lemonldap/NG/Portal/Auth/SAML.pm line 1418., referer: https://auth.openid.club/
==> /var/log/apache2/other_vhosts_access.log <==
auth.openid.club:443 92.184.102.58 - - [18/Jul/2018:09:22:33 +0200] "POST / HTTP/1.1" 500 3929 "https://auth.openid.club/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"