Skip to content

Handle errors on logout request #1026

Closed as not planned
Closed as not planned

Description

@davepacheco

I'm not sure if this is specific to IdP users or something else. I'm able to log out successfully when I logged in with spoof_login as privileged user. But when I logged in with SAML and then click "Sign out", I get no visual feedback at all (nothing happens). There's a 403 error in the console.

Nexus reported:

Jun 30 21:28:41.134 INFO request completed, error_message_external: Forbidden, error_message_internal: Forbidden, response_code: 403, uri: /logout, method: POST, req_id: 05d47fe1-01ca-4ea3-a749-3f65e563245a, remote_addr: 127.0.0.1:45179, local_addr: 127.0.0.1:12220, component: dropshot_external, name: e6bff1ff-24fb-49dc-a54e-c6a350cd4d6c

That might be an Omicron bug but I imagine the console should do something different here?

Activity

  1. david-crespo commented on Jun 30, 2022

    @david-crespo
    Collaborator

    At the very least we need an error handler here:

    const logout = useApiMutation('logout', {
    onSuccess: () => {
    // server will respond to /login with a login redirect
    // TODO-usability: do we just want to dump them back to login or is there
    // another page that would make sense, like a logged out homepage
    navToLogin({ includeCurrent: false })
    },
    })

  2. changed the title [-]cannot log out as IdP user[/-] [+]Handle errors on logout request[/+] on Jul 5, 2022
  3. modified the milestones: Guided Demo, on Oct 22, 2022
  4. added this to the MVP milestone on Feb 6, 2023
  5. added
    triage
    on Jan 1, 2024
  6. removed this from the MVP milestone on Jan 1, 2024
  7. david-crespo commented on Mar 11, 2024

    @david-crespo
    Collaborator

    Can't repro anymore. Logout with SAML IDP seems to work fine, even tried it after deleting session cookie to make sure logout with invalid auth is a "successful" noop and results in redirect to login page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions