I’m sure I’m doing something simple wrong here but I can’t request a token for my M2M client no matter what I try. If I submit my POST request with raw JSON I get a 401 access denied. If I submit my params as application/x-www-form-urlencoded I get the following 403:
{
"error": "unauthorized_client",
"error_description": "Grant type 'client_credentials ' not allowed for the client.",
"error_uri": "https://auth0.com/docs/clients/client-grant-types"
}
These posts seem to be having a similar problem:
Here’s some screenshots of my requests and client and API settings. What am I doing wrong here - any help much appreciated!
Thank you for your reply, and I’m glad that it works now!
It’s likely due to the content-type header in your initial request. I have encountered this issue before when the outgoing request had correct values but still returned an error.
Hoped this helps!
Please let me know if there’s anything else I can do to help.