minder icon indicating copy to clipboard operation
minder copied to clipboard

Unable to enroll provider due to "no valid authentication credentials"

Open datosh opened this issue 1 year ago • 2 comments

Describe the issue

As a first time user, after installing the Minder CLI, I must have taken a wrong turn and tried to execute minder provider enroll next, where I was presented with a rather cryptic error message:

Message: error getting authorization URL
Details: Unauthenticated indicates the request does not have valid
authentication credentials for the operation.

After a bit of re-reading the docs I was able to figure out that I had to do a minder auth login first.

Any chance the error message can be improved to guide the user to execute the correct step?

To Reproduce

  1. Download Minder CLI
  2. Execute minder provider enroll

What version are you using?

v0.0.30

datosh avatar Feb 20 '24 15:02 datosh

@dmjb in case your plate is empty-ish?

I agree the CLI should be more verbose, OTOH we probably don't want to add CLI-specific instructions into the server messages. Maybe adding the CLI instructions to a newly-wrapped error in MessageAndError might be a quick win?

jhrozek avatar Feb 20 '24 17:02 jhrozek

@datosh also, thank you very much for trying out Minder! If there's any more friction issues or any other problems you ran into, don't hesitate to file them. Feel free to also ping us on Discord, we'll be happy to hear any feedback.

jhrozek avatar Feb 20 '24 21:02 jhrozek

We now produce an error message that says:

Message: It seems you are logged out. Please run "minder auth login" first.

evankanderson avatar Jul 16 '24 13:07 evankanderson