Auth0 CLI test access token no longer works

I am trying to use the Auth0 CLI to obtain test tokens. I have been doing it this way for a long time, but as of the last few weeks, it just errors out with no information.

Steps:

  1. auth0 test token
  2. login if necessary
  3. select my client
  4. select my audience/api

I get the following:

.us.auth0.com error

 ▸    Please provide options to select from.

I try to list out the logs, but there is nothing useful there. Is there anywhere else I can look for specific errors.

My client (web app) has the audience listed in its configuration. Is there any additional config required for the API?

I tried upgrading my CLI to no avail.

auth0 version 1.8.0 c672a3c6ab2a04f57c420e832307aeb26e44ba8b

Hi @adesjardins

Welcome to the Auth0 Community!

Thank you for posting your question, I’ve been able to reproduce this issue and to fix it you’ll need to add permissions to your API and add them to the connection from the Machine to Machine tab in the API settings. After that I’ve been able to get the Access Token.

Thanks
Dawid

Add what to permissions? I am not trying to use Machine to Machine. I am trying generate a user access token.

For some reason, I cannot edit my previous comment, but I do have my Web Application authorized inside Machine to Machine tab on my API. What do I need to add to permissions? Why would this suddenly change?

Interesting, I added a random scope to the permissions then to the Web App in Machine to Machine, and it worked.

Even though I don’t use scopes, they are required?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.