Custom login form (with username and password) Error: access_denied

We would like to authenticate the user with Auth0 using our custom login form (with username and password). And this seem to be the correct resource: https://auth0.com/docs/api/authentication#resource-owner-password

However, I get a response of:
{
“error”: “access_denied”,
“error_description”: “Unauthorized”
}

The curl command is built like this:

Note: I have enabled the Password grant type, double checked the client id & client secret, and of course using valid credentials of the created user (using Username-Password-Authentication).

You’re sending the parameters as query parameters and as mentioned at (Authentication API Explorer) the expectation of that endpoint is that the parameters are sent in the request body using application/x-www-form-urlencoded encoding.

1 Like

Thank you! :slight_smile:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.