Skip to content
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

logout: make logout code more similar to upstream & fix logout redirects #245

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

haslersn
Copy link

See https://github.com/nextcloud/server/blob/b085803c0bfe8c568e5710525e49d5f6378833b6/core/Controller/LoginController.php#L99 and following lines.

Also note that setting clearingExecutionContexts is no longer required, because it had to do with the executionContexts feature which is no longer used by nextcloud since nextcloud/server#16310. Furthermore, with the behavior introduced in
nextcloud/server#12573, setting clearingExecutionContexts breaks our logout redirects, because the middleware subsequently (after the logout redirect) returns another redirects to /login?clear=1.

See https://github.com/nextcloud/server/blob/b085803c0bfe8c568e5710525e49d5f6378833b6/core/Controller/LoginController.php#L99
and following lines.

Also note that setting `clearingExecutionContexts` is no longer required,
because it had to do with the executionContexts feature which is no longer
used by nextcloud since nextcloud/server#16310.
Furthermore, with the behavior introduced in
nextcloud/server#12573, setting
`clearingExecutionContexts` breaks our logout redirects, because the
middleware subsequently (after the logout redirect) returns another
redirects to `/login?clear=1`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant