...
 
Commits (2)
  • Maxime Besson's avatar
    Provide configuration for manual launching of unit tests · ffd43bb9
    Maxime Besson authored
    This commit adds a .proverc configuration in lemonldap-* subdirectories
    
    It allows you to run unit tests easily during development
    
        make clean && make
        cd lemonldap-ng-portal
        prove t/my-unit-test.t
        prove -v t/my-unit-test.t
        prove t/*.t
    
    You'll get a nice colored output, plenty of details with '-v' (great is
    you set logLevel to "debug" in the test), etc.
    ffd43bb9
  • Maxime Besson's avatar
    When logout-initiating SP has no known SLO endpoint, fallback to portal · e535359e
    Maxime Besson authored
    In some federations, SLO endpoints are not published, yet SP are still
    able to initiate logouts.
    
    This used to cause an error on the portal, this commit changes the error
    into a warning in logs. The user remains on the portal and sees a normal
    logout message.
    e535359e
-e "env PERL_USE_UNSAFE_INC=1 perl -I ../lemonldap-ng-common/blib/lib -I ../lemonldap-ng-handler/blib/lib -I ../lemonldap-ng-manager/blib/lib -I ../lemonldap-ng-portal/blib/lib"
-e "env PERL_USE_UNSAFE_INC=1 perl -I ../lemonldap-ng-common/blib/lib -I ../lemonldap-ng-handler/blib/lib -I ../lemonldap-ng-manager/blib/lib -I ../lemonldap-ng-portal/blib/lib"
-e "env PERL_USE_UNSAFE_INC=1 perl -I ../lemonldap-ng-common/blib/lib -I ../lemonldap-ng-handler/blib/lib -I ../lemonldap-ng-manager/blib/lib -I ../lemonldap-ng-portal/blib/lib"
-e "env PERL_USE_UNSAFE_INC=1 perl -I ../lemonldap-ng-common/blib/lib -I ../lemonldap-ng-handler/blib/lib -I ../lemonldap-ng-manager/blib/lib -I ../lemonldap-ng-portal/blib/lib"
......@@ -2385,6 +2385,18 @@ sub samldate2timestamp {
sub sendLogoutResponseToServiceProvider {
my ( $self, $req, $logout, $method ) = @_;
my $httpmethod = $self->getFirstHttpMethod(
$self->lassoServer,
$logout->remote_providerID,
Lasso::Constants::MD_PROTOCOL_TYPE_SINGLE_LOGOUT
);
if ( $httpmethod == Lasso::Constants::HTTP_METHOD_NONE ) {
$self->logger->warn( "Provider "
. $logout->remote_providerID
. " has no SingleLogoutService in metadata, staying on portal" );
return $self->p->do( $req, [] );
}
# Logout response
unless ( $self->buildLogoutResponseMsg($logout) ) {
return $self->p->sendError( $req, "Unable to build SLO response", 500 );
......