-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Security][bugfix] "Remember me" cookie cleared on logout with custom "secure"/"httponly" config options [1] #14842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ut() It does work for default values of "secure" and "httponly" options, but it would break if one customized those options. symfony#14822
…y" options * test now always pass those options, as they are required * could be considered BC, but RememberMeFactory passes them, so they should've always been treated as required * symfony#14822
…elCookie() uses "secure" and "httponly" options)
$this->options['domain'], | ||
$this->options['secure'], | ||
$this->options['httponly'] | ||
)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be kept on one line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? It would make a really long line (difficult to read). 207 chars, which is a "warning sign" under PSR-2, which recommends to split such lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, is it possible to "restart" fabbot.io
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? It would make a really long line (difficult to read). 207 chars, which is a "warning sign" under PSR-2, which recommends to split such lines.
We've got wide monitors and don't mind long lines ;)
but seriously, readability is a personal preference in this case and we tend NOT to brake lines in such cases in the rest of codebase.
BTW, is it possible to "restart" fabbot.io?
Not as far as I know.
Thank you @MacDada. |
…with custom "secure"/"httponly" config options [1] (MacDada) This PR was squashed before being merged into the 2.3 branch (closes #14842). Discussion ---------- [Security][bugfix] "Remember me" cookie cleared on logout with custom "secure"/"httponly" config options [1] | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #14822 | License | MIT | Doc PR | ~ * test now always pass "secure" and "httponly" options, as they are required * could be considered BC, but [`RememberMeFactory` passes them](https://github.com/symfony/symfony/blob/2.3/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/RememberMeFactory.php#L21), so they should've always been treated as required * I can squash the commits before merging * Alternative solution: #14843 Commits ------- 18b1c6a [Security][bugfix] "Remember me" cookie cleared on logout with custom "secure"/"httponly" config options [1]
RememberMeFactory
passes them, so they should've always been treated as required