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:
commit
e41f55bcb6
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue