Skip to content

Commit 05f2841

Browse files
committed
Restore logout-behaviour for IdP's that do not send a saml:NameID in their LogoutRequest
1 parent 2932e1e commit 05f2841

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • modules/saml/src/Auth/Source

modules/saml/src/Auth/Source/SP.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,12 @@ public function logout(array &$state): ?Response
10451045
Assert::keyExists($state, 'saml:logout:Type');
10461046

10471047
$logoutType = $state['saml:logout:Type'];
1048-
Assert::oneOf($logoutType, ['saml2']);
1048+
Assert::oneOf($logoutType, ['saml1', 'saml2']);
1049+
1050+
// State variable saml:logout:Type is set to saml1 by us if we cannot properly logout the user
1051+
if ($logoutType === 'saml1') {
1052+
return null;
1053+
}
10491054

10501055
return $this->startSLO2($this->config, $state);
10511056
}

0 commit comments

Comments
 (0)