I have an app on react, and I’m trying to get a Management API token so I can make calls to get a user’s roles.
I’m following this tutorial, and I have added my Client Id and Client Secret for my Regular Web App.
However upon submitting, I receive 401 Unauthorized.
Should I be submitting the ClientId and Client Secret for my Regular Web App Application or the Backend API?
I added the client_id of my Machine to Machine application and the client_secret of that application.
I have ensured that the Client Credentials grant type has also been checked.
However, the response I get is:
{"error":"access_denied","error_description":"Client is not authorized to access \"https://redacted.auth0.com/api/v2/\". You might probably want to create a \"client-grant\" associated to this API. See: https://auth0.com/docs/api/v2#!/Client_Grants/post_client_grants"}