Skip to content

Commit b3386c7

Browse files
committed
Reverse logics
1 parent d4c8acd commit b3386c7

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

config-templates/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@
461461
* In example when you are setting up a federation bridge.
462462
*/
463463
'enable.saml20-idp' => false,
464-
'enable.saml20-unsolicited' => false,
464+
'enable.saml20-unsolicited' => true,
465465
'enable.adfs-idp' => false,
466466

467467

docs/simplesamlphp-upgrade-notes-2.0.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ Functional changes
3030
It is possible to switch back via the `sharedkey_algorithm`.
3131
Note however that CBC is vulnerable to the Padding oracle attack.
3232
- All support for the Shibboleth 1.3 / SAML 1.1 protocol has been removed.
33-
- Unsolicited responses are denied by default. If you need this functionality,
34-
it can be enabled by setting `enable.saml20-unsolicited` to `true`.
33+
- Unsolicited responses can denied by disabling it by setting `enable.saml20-unsolicited` to `false`.
3534

3635
Configuration changes
3736
---------------------

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ public static function onProcessingCompleted(array $authProcState): void
11391139
$state['Attributes'] = $authProcState['Attributes'];
11401140

11411141
$config = Configuration::getInstance();
1142-
$allowUnsolicited = $config->getBoolean('enable.saml20-unsolicited', false);
1142+
$allowUnsolicited = $config->getBoolean('enable.saml20-unsolicited', true);
11431143

11441144
Assert::true(
11451145
$allowUnsolicited,

modules/saml/www/sp/saml2-acs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
}
106106

107107
$config = Configuration::getInstance();
108-
$allowUnsolicited = $config->getBoolean('enable.saml20-unsolicited', false);
108+
$allowUnsolicited = $config->getBoolean('enable.saml20-unsolicited', true);
109109

110110
Assert::true(
111111
$allowUnsolicited,

0 commit comments

Comments
 (0)