We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2932e1e commit 05f2841Copy full SHA for 05f2841
1 file changed
modules/saml/src/Auth/Source/SP.php
@@ -1045,7 +1045,12 @@ public function logout(array &$state): ?Response
1045
Assert::keyExists($state, 'saml:logout:Type');
1046
1047
$logoutType = $state['saml:logout:Type'];
1048
- Assert::oneOf($logoutType, ['saml2']);
+ 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
+ }
1054
1055
return $this->startSLO2($this->config, $state);
1056
}
0 commit comments