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 redirects to login #5558
Conversation
This now works even when a Public user is enabled. Instead of auto-logging in a public user. https://trello.com/c/AaY4cwkn/98-go-to-webclient-login-after-logout
af26ed3
to
24eed6f
Compare
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.
Tested using public user and hitting the 'logout' button. Browser is directed to the login page, rather than back to the /webclient
page.
Still some Robot tests failing - I need to add more fixes... |
@jburel - The failure you're seeing at https://10.0.51.135:32776/job/OMERO-robot/22/robot/Web%20&%20Web/Web/Annotate%20Test/Test%20Search%20Results%20File%20Annotations/ should be fixed in this PR with 795bc26. Do you have this PR merged in your tests? |
Changing the PR target to include it in the robot tests fixed the test on Chrome: https://10.0.51.135:32776/job/OMERO-robot/24/robot/Web%20&%20Web/Web_1/Annotate%20Test/Test%20Search%20Results%20File%20Annotations/ |
970fb22
to
200c630
Compare
Ah, this is against |
Checked on web-dev-merge 👍 |
@rgozim this PR is not included in web-dev-merge |
Hmmm - strange. It seemed to be working earlier (clicking logout redirected to login page) when I saw @rgozim test this. |
I can log in as user-1 w/o issue |
It was a problem with VPN from home.
Previously this "appeared" to be working when testing logout as |
Merging for 5.4.2 |
Confirmation: Ran the robots w/o this PR and the changes were not needed |
When you logout, we previously tried to redirect to /webclient/. If public user was enabled for /webclient then you'd be auto logged in again (when you might have wanted to login as another user etc).
Now, we redirect to the login page.
When Public user is not enabled, the workflow is the same, since logout would then try to redirect to /webclient/ which would then redirect to /webclient/login/?url=%2Fwebclient%2F and then back to /webclient on login.
https://trello.com/c/AaY4cwkn/98-go-to-webclient-login-after-logout
Testing this PR
In webclient, logout
Check that you are redirected to /webclient/login/ (NB: no ?url=%2Fwebclient%2F)