# Username/password authentication does not seem to work?

**URL:** <https://community.auth0.com/t/username-password-authentication-does-not-seem-to-work/61911>\
**Category:** Get Help\
**Tags:** password\
**Created:** [April 28, 2021, 2:41pm UTC](https://community.auth0.com/t/username-password-authentication-does-not-seem-to-work/61911 "2021-04-28T14:41:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![diede](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/diede/32/12759_2.png) [@diede](https://community.auth0.com/u/diede)\
**Post date:** [April 28, 2021, 2:41pm UTC](https://community.auth0.com/t/username-password-authentication-does-not-seem-to-work/61911/1 "2021-04-28T14:41:51Z")

</div>

Hi,  
For my internship, I need to make postman tests to test the application in an Azure devops pipeline.  
I want to log in with username and password and receive a token from auth0 without using the web interface. I found this [https://auth0.com/docs/login/embedded-login/cross-origin-authentication](https://auth0.com/docs/login/embedded-login/cross-origin-authentication), but I am not able to get it to work. When I try this endpoint co/authenticate I get this:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/a/f/af7bd4f57fa100bcae909c3ecde6e52582975569.png)  
Then I tried it with this endpoint oauth/token and I get this:  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/8/4/84735c821a99cd1c0f4a2928e7e372b702a8596b.png)

For both, I use a Regular Web Application and I enabled password grand type for it.

I figured out how to do this for a device like this:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/b/3/b307c6ecaeaf58904555ef4fbd498f4717798df5.png)  
And I want to be able to do the same thing but then for a user. Is this possible and how?

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [April 28, 2021, 3:32pm UTC](https://community.auth0.com/t/username-password-authentication-does-not-seem-to-work/61911/3 "2021-04-28T15:32:00Z")

</div>

Hi @diede,

Welcome to the Community!

To follow the resource owner flow without a web interface, you can follow the guide here:

[https://auth0.com/docs/flows/call-your-api-using-resource-owner-password-flow](https://auth0.com/docs/flows/call-your-api-using-resource-owner-password-flow)

Here is an example request:

![Screen Shot 2021-04-28 at 11.29.02 AM](https://global.discourse-cdn.com/auth0/original/3X/1/8/18e3af3143de90501988c6efcb683b0d74312c2c.png)

You will also want to make sure that your tenant has a default directory set to the connection name (Tenant settings \> General → API Authorization Settings -\>Default Directory)

Related topic:

> [@Using the Request Owner Password Endpoint on a new dev account](https://community.auth0.com/t/using-the-request-owner-password-endpoint-on-a-new-dev-account/12893/5):
>
> Thanks @Carlos_Mostek, So finally got the /token endpoint working. I indicate below the exact config in case anyone else has the same issue in the future: URL endpoint: https://{AUTH0\_DOMAIN}/oauth/token Post body: { "client\_id": "\*\*\*", "grant\_type": "password", "username": "email@provider.com", "password": "\*\*\*" } Client Application settings: The Client application who’s client ID you are using must be of type native and password must be checked within the Applications -\> …

---

<div class="post-metadata">

**Author:** ![diede](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/diede/32/12759_2.png) [@diede](https://community.auth0.com/u/diede)\
**Post date:** [April 30, 2021, 1:53pm UTC](https://community.auth0.com/t/username-password-authentication-does-not-seem-to-work/61911/4 "2021-04-30T13:53:08Z")

</div>

Thank you! That worked!

---

<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:** [May 15, 2021, 1:53pm UTC](https://community.auth0.com/t/username-password-authentication-does-not-seem-to-work/61911/5 "2021-05-15T13:53:09Z")

</div>

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