I'm trying to authenticate with Auth0 so that my API calls will work and I'm getting a 403 error even though my credentials are correct.
There is no documentation on how to make the integration work.
I expected to be redirected to Auth0 for authentication, but instead, it uses a client grant, which seems unhelpful as I want to authenticate as a specific admin user in my system.
In addition, there's no way to request specific scopes. Is this intended?
This is the error that was logged in Auth0:
{
"date": "2023-02-08T16:23:13.453Z",
"type": "feccft",
"description": "Client is not authorized to access \"https://mydomain.uk.auth0.com/api/v2/\". You need to create a \"client-grant\" associated to this API. See: https://auth0.com/docs/api/v2#!/Client_Grants/post_client_grants",
"connection_id": "",
"client_id": "MyClientId",
"client_name": "MyName",
"ip": "35.90.103.132",
"user_agent": "Other 0.0.0 / Other 0.0.0",
"hostname": "mydomain.uk.auth0.com",
"user_id": "",
"user_name": "",
"audience": "https://mydomain.uk.auth0.com/api/v2/",
"scope": null,
"log_id": "90020230208162313461000000000000000007029122477687046144",
"_id": "90020230208162313461000000000000000007029122477687046144",
"isMobile": false,
"id": "90020230208162313461000000000000000007029122477687046144"
}
What am I doing wrong here? Note that the client credentials grant is turned on for my app so this shouldn't be a problem but the error I'm getting indicates otherwise.
Should I be using a different authentication method?