Auth0 Home Blog Docs

Error: Grant type client_credentials not allowed for the client

client-credentials-g

#1

I was able to get user idp tokens by using “Get a token manually” process here: https://auth0.com/docs/api/management/v2/tokens#get-a-token-manually

However, when I attempt to follow “Automate the Process” via node.js request module from my terminal or app, https://auth0.com/docs/api/management/v2/tokens#automate-the-process I get an error message as below: { error: ‘unauthorized_client’, error_description: ‘Grant type ‘client_credentials’ not allowed for the client.’, error_uri: ‘https://auth0.com/docs/clients/client-grant-types’ }

What would be the best way to resolve this error…? Your support would be really appreciated.


#2

In order to provide greater control over what flows are allowed for an application, some grant types are now disabled by default to allow application owners to opt-in should they wish to.

You can enable the grant types from the dashboard - instructions and more information available in the following doc:

https://auth0.com/docs/clients/client-grant-types#edit-available-grant_types


#3