Merge branch '2746-SAML-metadata-without-SingleLogoutService' into 'v2.0'

#2746 do not proceed to logout if no logoutService is defined into SAML MD

See merge request lemonldap-ng/lemonldap-ng!272
This commit is contained in:
Maxime Besson 2022-07-12 08:41:20 +00:00
commit e41f55bcb6
1 changed files with 7 additions and 0 deletions

View File

@ -2653,6 +2653,13 @@ sub sendLogoutRequestToProvider {
$self->logger->debug('Relay state set');
}
# Skip SLO if no method found (#2746)
unless ( defined $method and $method != -1 ) {
$self->logger->debug(
"No HTTP SLO method found for $providerID");
return ( 0, $method, undef );
}
# Initiate the logout request
unless ( $self->initLogoutRequest( $logout, $providerID, $method ) ) {
$self->logger->error("Initiate logout request failed for $providerID");