Skip to content

Add CompositeLogoutHandler#3904

Closed
eddumelendez wants to merge 1 commit intospring-projects:masterfrom
eddumelendez:gh-3895
Closed

Add CompositeLogoutHandler#3904
eddumelendez wants to merge 1 commit intospring-projects:masterfrom
eddumelendez:gh-3895

Conversation

@eddumelendez
Copy link
Copy Markdown
Contributor

@eddumelendez eddumelendez commented May 30, 2016

  • I have signed the CLA

Fixes gh-3895

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Mark as final

@rwinch
Copy link
Copy Markdown
Member

rwinch commented May 31, 2016

Thanks for the PR @eddumelendez! In general this looks pretty good. I provided some comments inline. Additionally, can we get unit tests for CompsiteLogoutHandler added?

@rwinch rwinch added the status: waiting-for-feedback We need additional information before we can continue label May 31, 2016
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please change the type to LogoutHandler

@eddumelendez
Copy link
Copy Markdown
Contributor Author

@rwinch PR is updated. Comments have been fixed and new test was added to cover CompositeLogoutHandler.

@pivotal-issuemaster
Copy link
Copy Markdown

@eddumelendez Please sign the Contributor License Agreement!

@pivotal-issuemaster
Copy link
Copy Markdown

@eddumelendez Thank you for signing the Contributor License Agreement!

@pivotal-issuemaster
Copy link
Copy Markdown

@eddumelendez Thank you for signing the Contributor License Agreement!

@eddumelendez
Copy link
Copy Markdown
Contributor Author

@rwinch any feedback about this?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we add a test that ensures that the logoutHandlers that are injected are invoked when CompositeLogoutHandler.logout is invoked? This would likely work well with a mock.

We should also document what happens if an Exception happens in one of the LogoutHandlers (the remaining LogoutHandlers won't be invoked) and have a test to verify the documentation is correct.

@rwinch
Copy link
Copy Markdown
Member

rwinch commented Jul 7, 2016

@eddumelendez Bump

@eddumelendez
Copy link
Copy Markdown
Contributor Author

@rwinch sorry for the delay. PR updated!

@rwinch
Copy link
Copy Markdown
Member

rwinch commented Jul 8, 2016

@rwinch sorry for the delay. PR updated!

@eddumelendez No problem...just was not like you since you are always on top of things :)

This is now merged into master via 1effc18 I also applied a bit of polish via 70787fc

NOTE: I modified the tests so that they weren't dependent on the name of the private variable. I'd prefer to keep tests verifying behavior rather than if a member variable is set or not. This is something that is no consistent w/ the codebase, but I'd like to keep it this way going forward.

@rwinch rwinch added in: web An issue in web modules (web, webmvc) type: enhancement A general enhancement and removed status: waiting-for-feedback We need additional information before we can continue labels Jul 8, 2016
@rwinch rwinch added this to the 4.2.0 M1 milestone Jul 8, 2016
@rwinch rwinch self-assigned this Jul 8, 2016
@rwinch rwinch closed this Jul 8, 2016
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) type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create CompositeLogoutHandler

3 participants