Uploaded image for project: 'Evergreen'
  1. Evergreen
  2. EVG-12603

Suggest re-logging into UI if evergreen CLI cannot authenticate user

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: current_quarter
    • Component/s: platform
    • Labels:

      Description

      User refresh tokens expire after 100 days and the only way to get a new token is to log into Okta via the UI. However, the CLI currently just returns 401 unauthorized - it should suggest logging in again if it gets this due to expired tokens.

      The way the middleware is written, there's no way to distinguish between different reasons for 401 unauthorized (e.g. unauthorized because ) since the user checking is based on the presence/absence of a gimlet.User being attached, so it's likely that suggesting logging in again will be the wrong solution since it's just a guess.

        Attachments

          Activity

            People

            Assignee:
            kimberly.tao Kim Tao
            Reporter:
            kimberly.tao Kim Tao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: