-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Security] Add logout configuration for Clear-Site-Data header #49306
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
1cc1494
to
9055e78
Compare
src/Symfony/Component/Security/Http/EventListener/ClearSiteDataLogoutListener.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Security/Http/EventListener/ClearSiteDataLogoutListener.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Security/Http/Tests/EventListener/ClearSiteDataLogoutListenerTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php
Outdated
Show resolved
Hide resolved
1a5ac23
to
c20d516
Compare
src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php
Outdated
Show resolved
Hide resolved
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.
doesn't miss some changes to an xsd file?
src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php
Outdated
Show resolved
Hide resolved
1cd02eb
to
95df250
Compare
Thanks for your reviews @stof and @nicolas-grekas, |
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.
Almost good to me :)
src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/CompleteConfigurationTestCase.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Security/Http/EventListener/ClearSiteDataLogoutListener.php
Outdated
Show resolved
Hide resolved
95df250
to
f9e76c1
Compare
Thank you @maxbeckers. |
Awesome |
…e-Data header (maxbeckers) This PR was merged into the 6.3 branch. Discussion ---------- [Security] Add logout configuration for Clear-Site-Data header This PR is related to symfony/symfony#49306. Enhance security by issuing a Clear-Site-Data header on logout. * [Clear-Site-Data](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Clear-Site-Data#sign_out_of_a_web_site) Documentation * Example: https://www.w3.org/TR/clear-site-data/#example-signout Add the documentation with code examples to the **Security Configuration Reference (SecurityBundle)**. Commits ------- 1ab4d04 [Security] Add logout configuration for Clear-Site-Data header
Enhance security by issuing a Clear-Site-Data header on logout.
Default config is off.
Config example for all:
Instead of all with the
*
it's also possible to add a set ofcache
,cookies
,storage
,executionContexts
. For example without cookies it will look like this:TODO