💻 Tech
In Auth0, if you’re trying to call management APIs using a non-machine to machine client, you may encounter an error like this:
oauth2: "unauthorized_client" "Grant type 'client_credentials' not allowed for the client." "https://auth0.com/docs/clients/client-grant-types"
exit status 1
I was using auth0/go-auth0
to query a client (or application) using an SPA client. Using authentication with SPA client works in my experience. But if you need to access management APIs to manage your dashboard, you need to create a machine to machine (m2m) client/application first. Use the client ID of that client on your API calls.