Commit 46e7e360 authored by Yadd's avatar Yadd
Browse files

SAML test skeleton

parent ea1b78b1
......@@ -10,6 +10,7 @@ lib/Lemonldap/NG/Handler/API/CGI.pm
lib/Lemonldap/NG/Handler/API/ExperimentalNginx.pm
lib/Lemonldap/NG/Handler/AuthBasic.pm
lib/Lemonldap/NG/Handler/CGI.pm
lib/Lemonldap/NG/Handler/Lib/AuthBasic.pm
lib/Lemonldap/NG/Handler/Main.pm
lib/Lemonldap/NG/Handler/Main/Init.pm
lib/Lemonldap/NG/Handler/Main/Jail.pm
......
......@@ -353,6 +353,7 @@ t/26-AuthRemote.t
t/27-AuthProxy.t
t/28-AuthChoice.t
t/29-AuthSSL.t
t/30-Auth-and-issuer-SAML.t
t/40-Notifications-DBI.t
t/50-IssuerGet.t
t/90-translations.t
......
......@@ -34,14 +34,6 @@ BEGIN {
}
else {
eval "use constant GLIB => 1";
Glib::Log->set_handler(
"Lasso",
[qw/ error critical warning message info debug /],
sub {
$_[0]
->lmLog( $_[0] . " error " . $_[1] . ": " . $_[2], 'debug' );
}
);
}
# Load Lasso.pm
......@@ -99,6 +91,16 @@ sub init {
else {
$self->lmLog( 'Lasso thin-sessions flag set', 'debug' );
}
if (GLIB) {
Glib::Log->set_handler(
"Lasso",
[qw/ error critical warning message info debug /],
sub {
$self->lmLog( $_[0] . " error " . $_[1] . ": " . $_[2],
'debug' );
}
);
}
# Conf initialization
......@@ -132,8 +134,7 @@ sub loadService {
# Create Lasso server with service metadata
my $server = $self->createServer(
$service_metadata->serviceToXML(
$self->getApacheHtdocsPath() . "/skins/common/saml2-metadata.tpl",
$self
$self->conf->{templateDir} . "/common/saml2-metadata.tpl", $self->conf
),
$self->conf->{samlServicePrivateKeySig},
$self->conf->{samlServicePrivateKeySigPwd},
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment