-
Notifications
You must be signed in to change notification settings - Fork 81
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: reload user info after logout, instead of assuming null #4383
Conversation
because the UI doesn't really know about the anonymous user, except from the API so.. logout would set user to null, going through the codepath that redirects to /login, which would go to github and log in again instead, reloading the info when in anonymous mode, the user gets set to the anonymous user, with no redirects Issue: AAH-2726
Backport to stable-4.8: 💚 backport PR created✅ Backport PR branch: Backported as #4386 🤖 @patchback |
because the UI doesn't really know about the anonymous user, except from the API so.. logout would set user to null, going through the codepath that redirects to /login, which would go to github and log in again instead, reloading the info when in anonymous mode, the user gets set to the anonymous user, with no redirects Issue: AAH-2726 (cherry picked from commit ceba5a3)
Backport to stable-4.7: 💚 backport PR created✅ Backport PR branch: Backported as #4387 🤖 @patchback |
because the UI doesn't really know about the anonymous user, except from the API so.. logout would set user to null, going through the codepath that redirects to /login, which would go to github and log in again instead, reloading the info when in anonymous mode, the user gets set to the anonymous user, with no redirects Issue: AAH-2726 (cherry picked from commit ceba5a3)
… (#4387) because the UI doesn't really know about the anonymous user, except from the API so.. logout would set user to null, going through the codepath that redirects to /login, which would go to github and log in again instead, reloading the info when in anonymous mode, the user gets set to the anonymous user, with no redirects Issue: AAH-2726 (cherry picked from commit ceba5a3) Co-authored-by: Martin Hradil <mhradil@redhat.com>
… (#4386) because the UI doesn't really know about the anonymous user, except from the API so.. logout would set user to null, going through the codepath that redirects to /login, which would go to github and log in again instead, reloading the info when in anonymous mode, the user gets set to the anonymous user, with no redirects Issue: AAH-2726 (cherry picked from commit ceba5a3) Co-authored-by: Martin Hradil <mhradil@redhat.com>
Issue: AAH-2726
The UI doesn't really know about the community mode anonymous user, except from the API which pretends it's just another user.
But logout would still set UI user to null, going through the codepath that redirects to /login, which would go to github and log in again instead.
Reloading the user info instead of using null, in community mode, the user gets set to the anonymous user, with no redirects.