-
Notifications
You must be signed in to change notification settings - Fork 15
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
After impersonate, Logout redirects to system logout #133
Comments
I am seeing the same behaviour which worked fine with v20 |
yes it was working with v20 |
same here with NC 24 0 4 1 |
Did/Does work fine in NC25.0.4 with Impersonate 1.12.0. |
yes it seems to 👍 |
I confirm the issue is back on my instance since NC26, Impersonate 1.13.0 |
Can confirm seeing the same thing on NC 25.0.5 |
Hi. I have updated my containers yesterday, and yes, 'impersonate' asks to login after quitting the user account. |
Confirm total logout when exiting impersonated user on NC version 25.0.5.1, impersonate 1.12.0. Did NOT occur on NC 24.0.11, exiting from impersonated user would return to original login. Tried reverting js/impersonate_logout.js and lib/Controller/LogoutController.php to previous state , but no change in results. (commit 2bb059c) [Edit fix link] Log shows impersonation, but no logout:
Having several logins for 'me', I really loved this feature and miss it badly. |
Same issue also 25.0.5 and 26.0.0. Once i impersonate a user and then i click on logout it dose not redirect me back the my profile but logs everything out. Before it never used to do this. I think it happen ever since the new version on the app was released |
2.6.0.1 still has this issue. |
Same on 25.0.6. |
Nextcloud 24.0.10 and Impersonate 1.11.1 > no issue Nextcloud 25.06 and impersonate 1.12 > logs out both users |
Nextcloud 26.01 and Impersonate 1.13 still have this problem |
Hi After login out of the impersonated account with the NC admin user, the main login screen is displayed: admin is logged out too. So, admin has to login after each impersonification, then go to users page again, which slows down the workflow .. On NC AiO 5.2.2 fingers crossed |
Just tested it is fixed on my system, NC 26.0.2 with Impersonate app 1.13.1. |
Wfm, too. @punkyard please log out (as admin, from your nc instance altogether), log in (as admin), then use impersonate a user and log out (from that impersonated user). You then should be back to your (still logged-in admin user). |
thanks, this is not working. It's not the first time .. It come and goes with updates .. |
Still does not work for me as well, logging out of the impersonated account just logs me out completely - NC v26.0.2 and Impersonate v1.13.1 Could this be related to what security is in place for the accounts? All my accounts have a minimum of using TOTP but most also use the Android app for authentication. |
Please check the browser console for errors. |
Please check also errors after opening any page as impersonated user. |
Just tested on NC 27.0.0 RC3 and the redirect is working for me. |
@Taomyn as impersonated user,, can you run the following in the browser console and report the result?
|
@blizzz here you go, hope it was ok to redact the token |
@Taomyn yes, the original logic is not replaces with the impersonate logout mechanism. Did you try to clean your browser cache yet? |
Damn, I hoped that would be it but no, I cleared the cache, restarted the browser and it was the same, I even tried in private mode and it behaves the same way |
Then you also do not see the "Logged in as Fooabar" notificaiton on the upper right? Which browser do you use? |
Currently Edge, though when I get home later I can try it again with Brave. Both up-to-date. |
Both of them Chrom(ium) in the end, but would still be good to verify whether the specific browser is a factor or not. |
So I tried Brave on my main PC and also Firefox on another, both full up-to-date, and the same behaviour where logging off the impersonated user logs me right out. |
Can you check your browser console network log to see if impersonate_logout.js gets loaded properly after impersonating a user? |
I only see it loading when choosing the user to impersonate it never appears again after that: |
Just a thought (not sure if this could be the issue), but can you check if the impersonate app is maybe limited to specific user groups in the apps management? Could probably explain why the script is not loaded for the impersonated user then |
After removing the limit and trying again all was working as expected including the small pop up stating the impersonation was in effect. The limit was always there as far as I recall, not sure if I placed it or if it was default, but I do know that it all worked once before. I take it the feature is locked to admins anyway? |
I can only think of this being an issue when switching the app bootstrap implementation starting with Nextcloud 20. Before that I think the app.php file was always loaded which could explain why it worked even with the group limit. Not having that in place seems to be more sensible so I proposed #222 for that. |
I've always limited 'impersonate' to admin group. |
It's limited to admins only. In admin settings you can choose other groups to be able to impersonate, but the default is limited to admins. |
After the nextcloud upgrade to version 21.0.1. I found that once your are in impersonated session, if you logout it will not redirect to previous login session it directly logout from system and login page shows up
The text was updated successfully, but these errors were encountered: