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

This commit is contained in:
alc 2022-06-24 18:40:50 +02:00
parent 86e572db52
commit 6433a0e75b
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");