-
Notifications
You must be signed in to change notification settings - Fork 155
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 in oc10 while click logout in web #6939
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
router.push({ name: 'login' }) | ||
} | ||
|
||
// Remove signed in user |
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.
Don't we need the store cleanups before the redirect?
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.
Well, this is something I can't answer yet, we do a redirect, so I thought the store should be cleaned while accessing the page the next time.
I moved this code path, as there is already a redirect happening in one of these dispatched actions
Results for oCISSharingAndUpload https://drone.owncloud.com/owncloud/web/25502/67/1 |
if (options.clearOIDCLoginState) { | ||
// clear oidc client state | ||
vueAuthInstance.clearLoginState() | ||
} |
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.
@kulmann this code path triggers a redirect already and interferes with redirecting to the oc10 log out,
I don't call vueAuthInstance.clearLoginState()
anymore if we are logged in via oauth2, is this ok?
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.
Is it really sufficient for oauth2 to skip that step? o_O
Kudos, SonarCloud Quality Gate passed! |
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.
LGTM 🚀
FYI, found some other issues with cyclic action dispatching... will tackle that in a subsequent PR that refactors most of the auth related code. 😅
Pulled latest from master to test this, after logging out of Web, if you then log in with different credentials, you are still logged in as previous user. |
Fixed by adding |
Description
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: