You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you log in to a silo, in which you do not have permissions assign to you, you will be presented with the "Something went wrong" screen. This screen does not have the mini-dropdown menu (containing the username and logout action). To actually logout the user currently needs to delete their session cookie or do some inspection of internal routes.
I'm not sure where we could take the user instead if they don't have access. I guess we either show a specific – "you don't have the right permissions to be here" screen with a logout or if the user doesn't have a minimum level of permission just kick them back out and don't save their session cookie with some kind of notice on the login screen.
Ran in to this again when trying to setup a new silo + idp. Currently if we misconfigure your idp (on the idp side, not the oxide side), the only way to log out and try the login action again is by deleting your session cookie.
Thanks for the bump. Maybe we can just add a logout button to that screen — it's probably weird to have it on the generic error page all the time, so maybe there's a way we can detect this situation. We can't actually hit /session/me in that case to get the username or other info, can we? What does the API error look like when you try to make requests? Is it a weird 401? A 403 on everything?
Activity
benjaminleonard commentedon Jan 10, 2024
I'm not sure where we could take the user instead if they don't have access. I guess we either show a specific – "you don't have the right permissions to be here" screen with a logout or if the user doesn't have a minimum level of permission just kick them back out and don't save their session cookie with some kind of notice on the login screen.
augustuswm commentedon Apr 24, 2024
Ran in to this again when trying to setup a new silo + idp. Currently if we misconfigure your idp (on the idp side, not the oxide side), the only way to log out and try the login action again is by deleting your session cookie.
david-crespo commentedon Apr 24, 2024
Thanks for the bump. Maybe we can just add a logout button to that screen — it's probably weird to have it on the generic error page all the time, so maybe there's a way we can detect this situation. We can't actually hit
/session/mein that case to get the username or other info, can we? What does the API error look like when you try to make requests? Is it a weird 401? A 403 on everything?augustuswm commentedon Apr 24, 2024
Let me reproduce the case and check. Essentially the user in a situation where they have been logged in to the silo, but have zero permissions.
[-]MIssing user corner menu on error screen[/-][+]Need way to log out from error screen[/+]dwradcliffe commentedon May 14, 2024
We ran into this a bunch of times getting new users setup, so either of the proposed fixes would be helpful :)