Skip to content

CLI show no error message when no valid access token is available #17754

Description

@MrPeacockNLB

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Currently coder external-auth access-token entra-id-mgmnt returns https://FQDN/external-auth/entra-id-mgmnt for an extra external auth configuration for Azure management API after one hour of authenticating in account external access.

After timeout one could see the folling message:

Image

To get it working again one has to re-authenticate again.

Setup

I've added a third external auth configuration for Azure management API. This actually works until the lifetime of the token has exceeded. So the settings are working and fully functional.

Relevant Log Output

Image

Expected Behavior

After token timeout the token should be refreshed with refresh token so one can always get a fresh accesstoken. And not the URL.

Steps to Reproduce

  1. authenticate against Azure management API
  2. wait one hour until the lifetime of the has been invalidated
  3. try to get a fresh access-token via coder CLI

Environment

  • Host OS: Linux
  • Coder version: v2.20.2

Additional Context

No response

Activity

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

    cliArea: CLI

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions