Skip to content

Add Support for Clear Site Data on Logout #6550

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

Closed
wants to merge 1 commit into from

Conversation

rhamedy
Copy link
Contributor

@rhamedy rhamedy commented Feb 22, 2019

This PR adds support for Clear Site Data HTTP response header. See the issue for more details.

Fixes #4187

Copy link
Contributor

@jzheaux jzheaux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, @rhamedy! I've left some feedback inline.


private final Log logger = LogFactory.getLog(getClass());

private RequestMatcher requestMatcher;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will you please make these fields final?

Added an implementation of HeaderWriter for Clear-Site-Data HTTP
response header as welll as an implementation of LogoutHanlder
that accepts an implementation of HeaderWriter to write headers.

- Added ClearSiteDataHeaderWriter and HeaderWriterLogoutHandler
that implements HeaderWriter and LogoutHandler respectively
- Added unit tests for both implementations's behaviours
- Integration tests for HeaderWriterLogoutHandler that uses
ClearSiteDataHeaderWriter
- Updated the documentation to include link to
HeaderWriterLogoutHandler

Fixes spring-projectsgh-4187
@jzheaux
Copy link
Contributor

jzheaux commented Feb 28, 2019

Thank you, @rhamedy! This has now been merged to master via 82d527e. I also did a quick polish on the tests via d86550f.

@jzheaux jzheaux closed this Feb 28, 2019
@jzheaux jzheaux self-assigned this Apr 14, 2019
@jzheaux jzheaux added New Feature in: web An issue in web modules (web, webmvc) status: duplicate A duplicate of another issue labels Apr 14, 2019
@jzheaux jzheaux added this to the 5.2.0.M2 milestone Apr 14, 2019
@rwinch rwinch added the type: enhancement A general enhancement label May 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web An issue in web modules (web, webmvc) status: duplicate A duplicate of another issue type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Clear Site Data to Log Out
3 participants