# How do I get an Auth Token using Postman instead of the browser?

**URL:** <https://community.auth0.com/t/how-do-i-get-an-auth-token-using-postman-instead-of-the-browser/69226>\
**Category:** Get Help\
**Created:** [September 7, 2021, 3:50pm UTC](https://community.auth0.com/t/how-do-i-get-an-auth-token-using-postman-instead-of-the-browser/69226 "2021-09-07T15:50:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgleason](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jgleason/32/25904_2.png) [@jgleason](https://community.auth0.com/u/jgleason)\
**Post date:** [September 7, 2021, 3:50pm UTC](https://community.auth0.com/t/how-do-i-get-an-auth-token-using-postman-instead-of-the-browser/69226/1 "2021-09-07T15:50:38Z")

</div>

I have read through [this](https://auth0.com/docs/login/authentication/add-login-auth-code-flow#authorization-url-example) and I am trying to get a Auth Token for a test user using postman. I create the following GET…

```
https://....us.auth0.com/authorize?response_type=code&client_id=...&redirect_uri=http://localhost:3000/callback

```

It says it should return with a 302 including the code and that is how I remember it working but I can’t get Postman to show the response url it just says…

```
Found. Redirecting to /u/login?state=hKFo2SBud1JHN0lETU9ENW9FM0R2WXA4U1JLZ1dQb3RzbWQ3WKFur3VuaXZlcnNhbC1sb2dpbqN0aWTZIEpFZ2doZEY3Y2xEY3hRaFd4UUFnRGM4OEM5SXI3NWUxo2NpZNkgT0NHT2k5eFZNSDlYa3NjV2VpSXlCVFJ2Y3c4cTUxcEI

```

So I try to use a browser, the browser shows the URL so I can get the code. I can then use the code to get an access token. But once I get the access token and include it in a header like…

```
Bearer 5J2FYbpYWbh9iixZ-k6PaWOxXm09fasd

```

It still tries to redirect me to the login. What am I missing?

TLDR  
I can’t get the code from the url using postman  
I can get an access token but when I try to use it I get a 403  
What is the proper way to do get a token for a test user?

---

<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:** [September 7, 2021, 10:04pm UTC](https://community.auth0.com/t/how-do-i-get-an-auth-token-using-postman-instead-of-the-browser/69226/3 "2021-09-07T22:04:08Z")

</div>

Hi @jgleason

Welcome to the Auth0 Community.

My recommendation for obtaining a token and testing user authentication would be through the [Authentication API debugger extension](https://auth0.com/docs/extensions/authentication-api-debugger-extension). This method is preferred since you will be able to leverage Auth0’s UI to perform various authentication flows.

However, if you would like to continue your development using Postman, then I recommend that you enable the [Password grant](https://auth0.com/docs/flows/call-your-api-using-resource-owner-password-flow) in your application settings. This will allow you to exchange a user’s email/password for tokens. Note that you will want to disable the Password grant once you are done with testing.

Please let me know if you have any other questions, I would be happy to help.

---

<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:** [September 25, 2021, 7:17pm UTC](https://community.auth0.com/t/how-do-i-get-an-auth-token-using-postman-instead-of-the-browser/69226/5 "2021-09-25T19:17:38Z")

</div>

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