Attempting to get token by password grant_type problem

Hello, fellow Auth0 Community Users!
Recently I wanted to use my api from Postman perspective and to achieve that I tried to obtain token by following request:

curl --request POST
–url ‘https://mydomain.auth0.com/oauth/token
–header ‘content-type: application/x-www-form-urlencoded’
–data grant_type=password
–data ‘username=###EMAIL###’
–data ‘password=###PASSWORD###’
–data ‘client_id=###CLIENT_ID###’
–data ‘client_secret=###CLIENT_SECRET###’

And the response is:
{“error”:“server_error”,“error_description”:“Authorization server not configured with default connection.”}

I have never encountered this type of error and also after searching through google, this community, Auth0 Docs I found nothing helpful. Any ideas where I made mistake?

Thank you from advance!
Regards,
Max

Hi @maksymilian.adamowic,

Welcome to the Auth0 Community!

The Resource Owner Password Flow relies on a connection that is capable of authenticating users by username and password, so you must set the default connection for the tenant.

Steps shown here.

Hope this helps!

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