# Problem using /oauth/token REST API

**URL:** <https://community.auth0.com/t/problem-using-oauth-token-rest-api/9252>\
**Category:** Get Help\
**Tags:** password\
**Created:** [January 22, 2018, 1:30am UTC](https://community.auth0.com/t/problem-using-oauth-token-rest-api/9252 "2018-01-22T01:30:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerbia](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jerbia/32/7612_2.png) [@jerbia](https://community.auth0.com/u/jerbia)\
**Post date:** [January 22, 2018, 1:30am UTC](https://community.auth0.com/t/problem-using-oauth-token-rest-api/9252/1 "2018-01-22T01:30:35Z")

</div>

Hi,

I am trying to use the “/oauth/token” REST API to verify user’s password.  
This API always return HTTP 401, even when the user&password provided are valid.  
Is there a special configuration I need to enable for this API?

Here is the HTTP details:

**Request:**  
POST /oauth/token HTTP/1.1  
Content-Length: 160  
Host: [xxx.auth0.com](http://xxx.auth0.com)  
Content-Type: application/json  
{  
“client\_id”: “client\_id”,  
“grant\_type”: “password”,  
“password”: “123456”,  
“scope”: “scope123”,  
“username”: “[myemail@mail.com](mailto:myemail@mail.com)”  
}  
\*\* Response \*\*:  
HTTP/1.1 401  
status: 401  
date: Sun, 21 Jan 2018 17:11:07 GMT  
content-type: application/json  
x-auth0-requestid: 23424234  
x-ratelimit-limit: 1000000  
x-ratelimit-remaining: 999999  
x-ratelimit-reset: 1516554668  
www-authenticate: Basic realm=“Users”  
cache-control: private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0  
{“error”:“access\_denied”,“error\_description”:“Unauthorized”}

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [December 14, 2018, 6:03pm UTC](https://community.auth0.com/t/problem-using-oauth-token-rest-api/9252/2 "2018-12-14T18:03:20Z")

</div>

As it has been more than a few months since this topic was opened, and there has been no reply or further information provided as to the existence of the issue, we are closing this topic. Please don’t hesitate to create a new topic if this issue is still present, we would be happy to work with you to help find a resolution.

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [December 14, 2018, 6:03pm UTC](https://community.auth0.com/t/problem-using-oauth-token-rest-api/9252/3 "2018-12-14T18:03:24Z")

</div>


