# PostMan 5.5 fails to complete OAuth 2 requests

**URL:** <https://community.postman.com/t/postman-5-5-fails-to-complete-oauth-2-requests/480>\
**Category:** Help Hub\
**Tags:** authentication, oauth2\
**Created:** [December 14, 2017, 6:55pm UTC](https://community.postman.com/t/postman-5-5-fails-to-complete-oauth-2-requests/480 "2017-12-14T18:55:09Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![blindkoala](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/blindkoala/32/191_2.png) [@blindkoala](https://community.postman.com/u/blindkoala)\
**Post date:** [December 14, 2017, 6:55pm UTC](https://community.postman.com/t/postman-5-5-fails-to-complete-oauth-2-requests/480/1 "2017-12-14T18:55:09Z")

</div>

In the 5.4 version of the Postman Chrome app, I am able to successfully request an OAuth2 token from [Bungie.net](http://Bungie.net) with the provided Auth URL, ClientId, and ClientSecret.

With the desktop app, this same flow fails with the error:

error:"invalid\_grant"  
error\_description:“AuthorizationCodeInvalid”

No other error information is provided.

---

<div class="post-metadata">

**Author:** ![abhinav](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/abhinav/32/8_2.png) [@abhinav](https://community.postman.com/u/abhinav)\
**Post date:** [December 14, 2017, 10:02pm UTC](https://community.postman.com/t/postman-5-5-fails-to-complete-oauth-2-requests/480/2 "2017-12-14T22:02:50Z")

</div>

The Postman desktop app is now at 5.5. Can you try upgrading and see if the issue persists for you?

---

<div class="post-metadata">

**Author:** ![blindkoala](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/blindkoala/32/191_2.png) [@blindkoala](https://community.postman.com/u/blindkoala)\
**Post date:** [December 14, 2017, 10:30pm UTC](https://community.postman.com/t/postman-5-5-fails-to-complete-oauth-2-requests/480/3 "2017-12-14T22:30:52Z")

</div>

Just tried that this morning. Same error.

Any idea what would generate that combination of error & error\_description?

Thanks.

---

<div class="post-metadata">

**Author:** ![shamasis](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/shamasis/32/53_2.png) [@shamasis](https://community.postman.com/u/shamasis)\
**Post date:** [December 17, 2017, 8:39pm UTC](https://community.postman.com/t/postman-5-5-fails-to-complete-oauth-2-requests/480/4 "2017-12-17T20:39:30Z")

</div>

What grant type are you using? I’ve not used bungie before, so cannot say what exactly is going wrong. Each auth provider has its own quirks.

@harryi3t @kamalaknn - thoughts?

---

<div class="post-metadata">

**Author:** ![blindkoala](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/blindkoala/32/191_2.png) [@blindkoala](https://community.postman.com/u/blindkoala)\
**Post date:** [December 18, 2017, 6:37pm UTC](https://community.postman.com/t/postman-5-5-fails-to-complete-oauth-2-requests/480/5 "2017-12-18T18:37:02Z")

</div>

I’m using ‘Authorization Code’. This is the same grant type that I’ve been using successfully on the Chrome app. Thanks for asking. I’m completely in the dark on how to fix this.

---

<div class="post-metadata">

**Author:** ![shamasis](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/shamasis/32/53_2.png) [@shamasis](https://community.postman.com/u/shamasis)\
**Post date:** [December 18, 2017, 8:50pm UTC](https://community.postman.com/t/postman-5-5-fails-to-complete-oauth-2-requests/480/6 "2017-12-18T20:50:09Z")

</div>

Ok, so you’re saying it works on Chrome App but not in the newly revamped auth of native app (I guess v5.4 and above). Let me dig deeper or point it to the more enlighten ones. 😊

---

<div class="post-metadata">

**Author:** ![blindkoala](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/blindkoala/32/191_2.png) [@blindkoala](https://community.postman.com/u/blindkoala)\
**Post date:** [December 18, 2017, 9:35pm UTC](https://community.postman.com/t/postman-5-5-fails-to-complete-oauth-2-requests/480/7 "2017-12-18T21:35:28Z")

</div>

> Ok, so you’re saying it works on Chrome App but not in the newly revamped auth of native app

Yes. Thanks again.

---

<div class="post-metadata">

**Author:** ![harryi3t](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/harryi3t/32/26_2.png) [@harryi3t](https://community.postman.com/u/harryi3t)\
**Post date:** [December 19, 2017, 8:59am UTC](https://community.postman.com/t/postman-5-5-fails-to-complete-oauth-2-requests/480/8 "2017-12-19T08:59:24Z")

</div>

@blindkoala  
I was able to reproduce the issue.  
I have created an internal ticket for it and am working on a fix.

### Here’s the explanation of why this happened.

This bug is limited to [Bungie.net](http://Bungie.net) (or any other server which includes intermediate redirections containing “code” query parameter)

These are the redirections which happen behind the scene

```auto
https://www.bungie.net/en/OAuth/Authorize
\/
https://auth.api.sonyentertainmentnetwork.com/2.0/oauth/authorize
\/
https://www.bungie.net/en/User/SignIn/Psnid?code=INTERMEDIATE_CODE
\/
https://app.getpostman.com/oauth2/callback?code=ACTUAL_CODE

```

Since the param “code” was found in the 3rd step, we use it to make the call to get `access_token`.  
Since that code was not `ACTUAL_CODE`, it fails.

---

<div class="post-metadata">

**Author:** ![blindkoala](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/blindkoala/32/191_2.png) [@blindkoala](https://community.postman.com/u/blindkoala)\
**Post date:** [December 19, 2017, 7:53pm UTC](https://community.postman.com/t/postman-5-5-fails-to-complete-oauth-2-requests/480/9 "2017-12-19T19:53:11Z")

</div>

Good to know. Hopefully I helped you root out a bug that’s not just present on [Bungie.net](http://Bungie.net). Nice work!

---

<div class="post-metadata">

**Author:** ![science-administrat8](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/science-administrat8/32/29383_2.png) [@science-administrat8](https://community.postman.com/u/science-administrat8)\
**Post date:** [July 18, 2024, 2:26pm UTC](https://community.postman.com/t/postman-5-5-fails-to-complete-oauth-2-requests/480/10 "2024-07-18T14:26:50Z")

</div>

coming across this 6 years later as I have stumbled into what seems to be the same issue.  
Is there an existing ticket still being worked on or a fix?

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [July 18, 2024, 2:31pm UTC](https://community.postman.com/t/postman-5-5-fails-to-complete-oauth-2-requests/480/11 "2024-07-18T14:31:27Z")

</div>

Hey @science-administrat8

Welcome to the Postman Community! :postman:

As this is a very old topic and related to version 5 of Postman, can I ask that you create a new topic which contains all the contextual information about your specific issue, please.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [July 18, 2024, 2:31pm UTC](https://community.postman.com/t/postman-5-5-fails-to-complete-oauth-2-requests/480/12 "2024-07-18T14:31:40Z")

</div>

Closed on July 18, 2024, 2:31pm UTC


