Hi,
Context
I am creating a Native App where we want to authorize user with our native login form. I successfully used the dbconnections/signup
endpoint to create a new user.
The problem:
For the oauth/token
endpoint, I am getting
{
"error": "access_denied",
"error_description": "Unauthorized"
}
This is my cUrl ( this is a test app I created )
curl --location --request POST 'https://dev-uc7nx3l56liil03z.us.auth0.com/oauth/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: did=s%3Av0%3A55a459f0-9550-11ed-8ece-25f26b66f3fc.S%2BAunX5GHOL3qjtG7atjL3AR9QvMlQ7b%2B3LI%2BqCwVpI; did_compat=s%3Av0%3A55a459f0-9550-11ed-8ece-25f26b66f3fc.S%2BAunX5GHOL3qjtG7atjL3AR9QvMlQ7b%2B3LI%2BqCwVpI' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'client_id=i89ZfhJY1fI4gVnbyjrn0ZBukxPucUfz' \
--data-urlencode 'username=xeixujocreke-1762@yopmail.com' \
--data-urlencode 'password=@Aab123456'
The password
is the password I sent in the dbconnections/signup
, and the username
is the email
since I didnt provide a custom username.
The Application type is Native Application, and I have checked, there’s no rules involved.
Can someone help me with this. Thanks