# OAuth2.0 works from Postman UI, doesn't work via manual request

**URL:** <https://community.postman.com/t/oauth2-0-works-from-postman-ui-doesnt-work-via-manual-request/41040>\
**Category:** Help Hub\
**Tags:** authentication\
**Created:** [November 11, 2022, 9:47pm UTC](https://community.postman.com/t/oauth2-0-works-from-postman-ui-doesnt-work-via-manual-request/41040 "2022-11-11T21:47:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gritradir](https://avatars.discourse-cdn.com/v4/letter/g/ea666f/32.png) [@gritradir](https://community.postman.com/u/gritradir)\
**Post date:** [November 11, 2022, 9:47pm UTC](https://community.postman.com/t/oauth2-0-works-from-postman-ui-doesnt-work-via-manual-request/41040/1 "2022-11-11T21:47:20Z")

</div>

**Token request works from Postman UI, doesn’t work via manual request**

The issue I’m facing is I’m trying to manually get the token from the API for the sake of automation. What I did is I configured IdentitySever to grant token on user credentials it worked fine when request has been sent via OAuth UI:

 ![Automatic request UI](https://us1.discourse-cdn.com/getpostman/original/3X/7/a/7a11aa8f69b89f68b15227691d27907c57fabd41.png)

I’m getting the following request/response (viewed in console):

 ![Automatic request](https://us1.discourse-cdn.com/getpostman/original/3X/7/1/71d60686bf753c84d1091e333fadf56a3403e18a.png)

Now the issue is that I’m sending the exact same request but manually, but it fails:

 ![Manual request](https://us1.discourse-cdn.com/getpostman/original/3X/6/a/6addf295d7691be32d27e0baf6fa22599a41742e.png)

Am I missing something? The requests are identical, I copied over clients, passwords etc in case anything is different.  
I’ve also tried to do the token request via get+query string, but same result

Anything else that I’m missing? Does UI do something else under the hood? Did I miss something?

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [November 16, 2022, 12:06pm UTC](https://community.postman.com/t/oauth2-0-works-from-postman-ui-doesnt-work-via-manual-request/41040/2 "2022-11-16T12:06:28Z")

</div>

What do you mean by manually?
