Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp
Commits
bbec41dc
Commit
bbec41dc
authored
4 years ago
by
Tim van Dijen
Browse files
Options
Downloads
Patches
Plain Diff
Secure cookies by default
parent
716ecdb1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config-templates/config.php
+2
-2
2 additions, 2 deletions
config-templates/config.php
docs/simplesamlphp-upgrade-notes-1.19.md
+6
-0
6 additions, 0 deletions
docs/simplesamlphp-upgrade-notes-1.19.md
with
8 additions
and
2 deletions
config-templates/config.php
+
2
−
2
View file @
bbec41dc
...
@@ -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'
=>
fals
e
,
'session.cookie.secure'
=>
tru
e
,
/*
/*
* 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'
=>
fals
e
,
'language.cookie.secure'
=>
tru
e
,
'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
,
...
...
This diff is collapsed.
Click to expand it.
docs/simplesamlphp-upgrade-notes-1.19.md
+
6
−
0
View file @
bbec41dc
...
@@ -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.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment