# Authentication API Debugger Not Authorised

**URL:** <https://community.auth0.com/t/authentication-api-debugger-not-authorised/71945>\
**Category:** Get Help\
**Tags:** login, auth0\
**Created:** [October 24, 2021, 11:06pm UTC](https://community.auth0.com/t/authentication-api-debugger-not-authorised/71945 "2021-10-24T23:06:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![craig.wildgoat](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/craig.wildgoat/32/15439_2.png) [@craig.wildgoat](https://community.auth0.com/u/craig.wildgoat)\
**Post date:** [October 24, 2021, 11:06pm UTC](https://community.auth0.com/t/authentication-api-debugger-not-authorised/71945/1 "2021-10-24T23:06:01Z")

</div>

I’m using Authentication API Debugger to test the Grant Password oauth endpoint and I’m hitting it with the following

POST https://MY\_DOMAIN.auth0.com/oauth/token

{  
“client\_id”: “MY\_CLIENT\_ID”,  
“connection”: “Username-Password-Authentication”,  
“grant\_type”: “password”,  
“password”: “MY\_PASSWORD”,  
“scope”: “openid”,  
“username”: “MY\_USERNAME”  
}

And I keep getting unauthorised - I’ve trolled through the doco for hours and I have the correct grant type and the password is definitely correct so I’m stuck as to what I’m doing wrong.

Any help gratefully appreciated.

Cheers

Craig

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [October 25, 2021, 5:51pm UTC](https://community.auth0.com/t/authentication-api-debugger-not-authorised/71945/4 "2021-10-25T17:51:01Z")

</div>

Hi @craig.wildgoat,

Welcome to the Auth0 Community!

I understand that you are encountering problems using the Authentications API Debugging, specifically with the `Unauthorized` error.

Having looked closely at your `POST` request, it appears that you are missing the `client_secret` parameter.

For example:

```auto
curl --request POST \
  --url 'https://YOUR_DOMAIN/oauth/token' \
  --header 'content-type: application/x-www-form-urlencoded' \
  --data grant_type=password \
  --data username=user@example.com \
  --data password=pwd \
  --data audience=YOUR_API_IDENTIFIER \
  --data scope=read:sample \
  --data client_id=YOUR_CLIENT_ID \
  --data client_secret=YOUR_CLIENT_SECRET

```

You may find our docs on Resource Owner Password Flow useful:  
[https://auth0.com/docs/authorization/flows/call-your-api-using-resource-owner-password-flow#example-post-to-token-url](https://auth0.com/docs/authorization/flows/call-your-api-using-resource-owner-password-flow#example-post-to-token-url)

Please let me know how this works for you.

Thank you.

---

<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:** [November 9, 2021, 5:51pm UTC](https://community.auth0.com/t/authentication-api-debugger-not-authorised/71945/5 "2021-11-09T17:51:42Z")

</div>

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