Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Security] Add logout configuration for Clear-Site-Data header#17900

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@maxbeckers
Copy link
Contributor

This PR is related tosymfony/symfony#49306.

Enhance security by issuing a Clear-Site-Data header on logout.

Add the documentation with code examples to theSecurity Configuration Reference (SecurityBundle).

@carsonbotcarsonbot added this to the6.3 milestoneFeb 13, 2023
@javiereguiluzjaviereguiluz added the Waiting Code MergeDocs for features pending to be merged labelFeb 13, 2023
@carsonbotcarsonbot modified the milestones:6.3,nextFeb 13, 2023
fabpot added a commit to symfony/symfony that referenced this pull requestMar 10, 2023
…a header (maxbeckers)This PR was merged into the 6.3 branch.Discussion----------[Security] Add logout configuration for Clear-Site-Data header| Q             | A| ------------- | ---| Branch?       | 6.3| Bug fix?      | no| New feature?  | yes| Deprecations? | no| Tickets       |Fix#49266| License       | MIT| Doc PR        |symfony/symfony-docs#17900Enhance 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-signoutDefault config is off.Config example for all:```yamlsecurity:    # ...    firewalls:        main:            # ...            logout:                path: app_logout                clear_site_data:                    - "*"```Instead of all with the ``*`` it's also possible to add a set of  ``cache``, ``cookies``, ``storage``, ``executionContexts``. For example without cookies it will look like this:```yamlsecurity:    # ...    firewalls:        main:            # ...            logout:                path: app_logout                clear_site_data:                    - cache                    - storage                    - executionContexts```**TODO**- [x] Doc PRsymfony/symfony-docs#17900Commits-------f9e76c1 [Security] Add logout configuration for Clear-Site-Data header
symfony-splitter pushed a commit to symfony/security-http that referenced this pull requestMar 10, 2023
…a header (maxbeckers)This PR was merged into the 6.3 branch.Discussion----------[Security] Add logout configuration for Clear-Site-Data header| Q             | A| ------------- | ---| Branch?       | 6.3| Bug fix?      | no| New feature?  | yes| Deprecations? | no| Tickets       | Fix #49266| License       | MIT| Doc PR        |symfony/symfony-docs#17900Enhance 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-signoutDefault config is off.Config example for all:```yamlsecurity:    # ...    firewalls:        main:            # ...            logout:                path: app_logout                clear_site_data:                    - "*"```Instead of all with the ``*`` it's also possible to add a set of  ``cache``, ``cookies``, ``storage``, ``executionContexts``. For example without cookies it will look like this:```yamlsecurity:    # ...    firewalls:        main:            # ...            logout:                path: app_logout                clear_site_data:                    - cache                    - storage                    - executionContexts```**TODO**- [x] Doc PRsymfony/symfony-docs#17900Commits-------f9e76c1e47 [Security] Add logout configuration for Clear-Site-Data header
symfony-splitter pushed a commit to symfony/security-bundle that referenced this pull requestMar 10, 2023
…a header (maxbeckers)This PR was merged into the 6.3 branch.Discussion----------[Security] Add logout configuration for Clear-Site-Data header| Q             | A| ------------- | ---| Branch?       | 6.3| Bug fix?      | no| New feature?  | yes| Deprecations? | no| Tickets       | Fix #49266| License       | MIT| Doc PR        |symfony/symfony-docs#17900Enhance 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-signoutDefault config is off.Config example for all:```yamlsecurity:    # ...    firewalls:        main:            # ...            logout:                path: app_logout                clear_site_data:                    - "*"```Instead of all with the ``*`` it's also possible to add a set of  ``cache``, ``cookies``, ``storage``, ``executionContexts``. For example without cookies it will look like this:```yamlsecurity:    # ...    firewalls:        main:            # ...            logout:                path: app_logout                clear_site_data:                    - cache                    - storage                    - executionContexts```**TODO**- [x] Doc PRsymfony/symfony-docs#17900Commits-------f9e76c1e47 [Security] Add logout configuration for Clear-Site-Data header
@maxbeckers
Copy link
ContributorAuthor

Codemerge has been done.

@OskarStarkOskarStark removed the Waiting Code MergeDocs for features pending to be merged labelMar 11, 2023
@maxbeckersmaxbeckersforce-pushed thefirewall_logout_clear_site_data branch fromfe7b280 to6b66970CompareMarch 14, 2023 06:10
@maxbeckers
Copy link
ContributorAuthor

Hi@OskarStark,
do you have any idea, why this build error is comming up? Cannot reproduce that error. Is there anywhere an old dependency during the build run?

@maxbeckersmaxbeckersforce-pushed thefirewall_logout_clear_site_data branch 2 times, most recently from3ef5d36 toe2d1138CompareMarch 14, 2023 07:01
@maxbeckersmaxbeckersforce-pushed thefirewall_logout_clear_site_data branch frome2d1138 to1ab4d04CompareMarch 14, 2023 07:10
@OskarStark
Copy link
Contributor

I don't know, but we can ignore it I guess

@javiereguiluz
Copy link
Member

Max, what a great first contribution to Symfony Docs! Thanks and congrats 🎉

maxbeckers reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

6.3

Development

Successfully merging this pull request may close these issues.

4 participants

@maxbeckers@OskarStark@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp