# Attempting to get token by password grant\_type problem

**URL:** <https://community.auth0.com/t/attempting-to-get-token-by-password-grant-type-problem/108769>\
**Category:** Get Help\
**Tags:** client-grants, management-api\
**Created:** [June 7, 2023, 4:15pm UTC](https://community.auth0.com/t/attempting-to-get-token-by-password-grant-type-problem/108769 "2023-06-07T16:15:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maksymilian.adamowic](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/maksymilian.adamowic/32/47891_2.png) [@maksymilian.adamowic](https://community.auth0.com/u/maksymilian.adamowic)\
**Post date:** [June 7, 2023, 4:15pm UTC](https://community.auth0.com/t/attempting-to-get-token-by-password-grant-type-problem/108769/1 "2023-06-07T16:15:51Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [June 21, 2023, 1:50pm UTC](https://community.auth0.com/t/attempting-to-get-token-by-password-grant-type-problem/108769/3 "2023-06-21T13:50:34Z")

</div>

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.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/4/6/469b0998ba310efc6ee708676c3d30b8b969a670.png)

Steps shown [here.](https://auth0.com/docs/get-started/authentication-and-authorization-flow/call-your-api-using-resource-owner-password-flow#configure-tenant)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [July 5, 2023, 1:51pm UTC](https://community.auth0.com/t/attempting-to-get-token-by-password-grant-type-problem/108769/4 "2023-07-05T13:51:08Z")

</div>

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