Skip to content
Snippets Groups Projects
Commit bbec41dc authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Secure cookies by default

parent 716ecdb1
No related branches found
No related tags found
No related merge requests found
...@@ -566,7 +566,7 @@ $config = [ ...@@ -566,7 +566,7 @@ $config = [
* through https. If the user can access the service through * through https. If the user can access the service through
* both http and https, this must be set to FALSE. * both http and https, this must be set to FALSE.
*/ */
'session.cookie.secure' => false, 'session.cookie.secure' => true,
/* /*
* Set the SameSite attribute in the cookie. * Set the SameSite attribute in the cookie.
...@@ -803,7 +803,7 @@ $config = [ ...@@ -803,7 +803,7 @@ $config = [
'language.cookie.name' => 'language', 'language.cookie.name' => 'language',
'language.cookie.domain' => null, 'language.cookie.domain' => null,
'language.cookie.path' => '/', 'language.cookie.path' => '/',
'language.cookie.secure' => false, 'language.cookie.secure' => true,
'language.cookie.httponly' => false, 'language.cookie.httponly' => false,
'language.cookie.lifetime' => (60 * 60 * 24 * 900), 'language.cookie.lifetime' => (60 * 60 * 24 * 900),
'language.cookie.samesite' => \SimpleSAML\Utils\HTTP::canSetSameSiteNone() ? 'None' : null, 'language.cookie.samesite' => \SimpleSAML\Utils\HTTP::canSetSameSiteNone() ? 'None' : null,
......
...@@ -5,3 +5,9 @@ The minimum PHP version required is now PHP 7.1. ...@@ -5,3 +5,9 @@ The minimum PHP version required is now PHP 7.1.
SAML 1 / Shib 1.3 support is now deprecated and will start logging notices SAML 1 / Shib 1.3 support is now deprecated and will start logging notices
when used. It will be removed in SimpleSAMLphp 2.0. when used. It will be removed in SimpleSAMLphp 2.0.
SimpleSAMLphp 1.19 will automatically try to determine whether to set the sameSite-flag on cookies.
Some browser require to set the Secure-flag as well for sameSite to work. Therefore, the default for
the `session.cookie.secure` setting has been changed to TRUE. This will be the right setting for most
setups anyway, however if you really need to use insecure cookies, you have to manually set it to false and
figure out a value for `session.cookie.samesite` that works for your environment.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment