Skip to content

Need way to log out from error screen #1876

Closed

Description

@augustuswm

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.

Activity

  1. benjaminleonard commented on Jan 10, 2024

    @benjaminleonard
    Contributor

    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.

  2. augustuswm commented on Apr 24, 2024

    @augustuswm
    Author

    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.

  3. david-crespo commented on Apr 24, 2024

    @david-crespo
    Collaborator

    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?

  4. augustuswm commented on Apr 24, 2024

    @augustuswm
    Author

    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.

  5. added this to the 9 milestone on May 10, 2024
  6. changed the title [-]MIssing user corner menu on error screen[/-] [+]Need way to log out from error screen[/+] on May 10, 2024
  7. dwradcliffe commented on May 14, 2024

    @dwradcliffe

    We ran into this a bunch of times getting new users setup, so either of the proposed fixes would be helpful :)

  8. self-assigned this
    on May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions