-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Issue #8216 - OpenID Connect RP-Initiated Logout #8286
Merged
lachlan-roberts
merged 6 commits into
jetty-10.0.x
from
jetty-10.0.x-8216-openid-logout
Jul 20, 2022
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5282ca3
Issue #8216 - provide logout for OpenID via OpenidAuthenticator
keller-j 92cf466
Merge commit '5282ca37ef7a81789b3c1d0a41854259898bce96' into jetty-10…
lachlan-roberts 26732c9
Issue #8216 - Use HttpServletRequest.logout() for openid end_session_…
lachlan-roberts 90fe562
Issue #8216 - improve testing for end_session_endpoint
lachlan-roberts 6de385e
Issue #8216 - change logic on when to redirect
lachlan-roberts c38b326
Issue #8216 - fix broken test OpenIdAuthenticationTest
lachlan-roberts File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I'd prefer to allow null to be set here and have that mean "do not redirect on logout"
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.
This redirect path is actually for the OpenId provider redirecting back to the webapp, not for the webapp to redirect to the OpenID Provider on logout.
So the "do not redirect on logout" setting is actually defined in
OpenIdConfiguration
as theendSessionEndpoint
. But since this is optional we could not include this parameter if it is not explicitly set. Either way I think this does need some javadoc/documentation to explain this.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.
I understand it is the redirect after the logout redirect. If there is no
endSessionEndpoint
, you just redirect to the logout redirect, which you are currently insisting is non null.But you could allow null and define that to mean no redirecting at all on logout, thus giving the old behaviour.
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.
Ok I have changed to logic to not redirect back to application if
LOGOUT_REDIRECT_PATH
is null.And updated the javadoc of
attemptLogoutRedirect
to explain how it works.