Hi @EBA,
Welcome to the Auth0 Community and thank you for your post!
The reason for this error should be enabling the password
grant directly via the Management API, which will not enable the https://auth0.com/oauth/grant-type/password-realm
as well. This Knowledge article - Error “Grant type ‘https://auth0.com/oauth/grant-type/password-realm’ not allowed for the client” specifies 2 possible solutions for this error:
-
Turn the ‘Password’ grant type off > Save > and then on again > Save in the dashboard.
-
update the client via the Management API using a command such as this:
curl -L -X PATCH 'https://YOUR-DOMAIN.auth0.com/api/v2/clients/YOUR-CLIENT-ID' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer 🔒' \
-d '{"grant_types":["password","http://auth0.com/oauth/grant-type/password-realm"]}'
I hope this helps!
Thanks,
Remus