Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth2 id_token in Authorization header 4.0.2 #1854

Closed
joshboley opened this issue Mar 14, 2016 · 19 comments
Closed

OAuth2 id_token in Authorization header 4.0.2 #1854

joshboley opened this issue Mar 14, 2016 · 19 comments
Assignees
Projects

Comments

@joshboley
Copy link

When my team uses the OAuth2 flow to get a token, our oauth provider return both an access_token and and id_token. As of version 3.2.20, the id_token would show up in the Postman UI and we could select it and add it to an environment variable easily that would be passed in the Authorization header. On Friday, some team members were auto-upgraded to 4.0.2. After this upgrade, the only options we have in the UI are to add the token to the header or add the token to the URL. This issue with this is that we need the id_token added to the header, but Postman seems to only support adding the access_token to the header. Therefore, the only way for us to use Postman with oauth2 is to use the dev tools to inspect the returned request and copy and paste the id_token into the header and/or an environment variable. So, am I missing some feature that would allow us to do this without using dev tools or was this feature removed at some point along the way? If it was removed, it would be nice to have a third radio button that would allow you to see the tokens returned without using dev tools. Here's a screenshot of how it looked in 3.2.20 when a token was returned. Thanks so much.

capture

@Wanaco
Copy link

Wanaco commented Mar 16, 2016

I agree!
This is very frustrating...
Is it in the dev team radar?

@abhijitkane
Copy link
Member

Yes, @Wanaco, we're working on a fix for this and will try to push it out soon.

@abhijitkane
Copy link
Member

@Wanaco @joshboley We've pushed updates to the OAuth2 flow in the latest version (4.4.1) that should fix this.

@a85 a85 removed their assignment Dec 21, 2016
@a85 a85 added the Auth label Feb 4, 2017
@czardoz czardoz moved this from Suggestions to Done in OAuth 2 Mar 21, 2017
@dpovey
Copy link

dpovey commented Apr 1, 2017

I am currently using Postman 4.10.5 I get a correct id_token but I cannot seem to add it to the request. It only gives me a "Use Token" button when I click on the retrieved token. This will only allow access to the authorization token and not the id_token.

@lemtzas
Copy link

lemtzas commented Apr 20, 2017

Version 4.10.7 here. Same issue.

@a85 a85 removed the bug label May 9, 2017
@Dismissile
Copy link

@abhijitkane This was addressed over a year ago and doesn't seem to be fixed. Are you guys still planning on fixing this?

@sdnts
Copy link

sdnts commented Aug 2, 2017

@Dismissile We're planning on major auth improvements in the near term, this will be a part of that. You can follow our product roadmap for consistent updates :)

In any case, I'll let you guys know here when a fix lands on stable.

@Dismissile
Copy link

Dismissile commented Aug 2, 2017 via email

@sdnts
Copy link

sdnts commented Aug 3, 2017

@Dismissile If you save the token to an environment variable, you can access it in the pre-request and test scripts.

@sergey-netdev
Copy link

@madebysid, can you please describe how we do that in "Get New Access Token" dialog?

@sergey-netdev
Copy link

Any updates on this?

@htowens
Copy link

htowens commented May 16, 2018

I’m also facing challenges with this issue - the Oauth2 authorization option is correctly retrieving both ID and access tokens from AWS Cognito, but I don’t have any option to choose which is used to authenticate, which means constant “unauthorized” errors.

Any updates on a fix? Any workarounds in the interim (assuming we can’t control the tokens returned by the endpoint)?

@JohnBloom
Copy link

Same problem for me using AWS Cognito. It would be nice if there was a setting somewhere to allow me to indicate what token to use. Currently I have to copy the id token out of the payload and switch the auth to bearer token and paste it in. This is frustrating because it doesnt support the refresh token so I can only use the endpoint for an hour before I have to go through the auth again to get a new token.

@harryi3t
Copy link

harryi3t commented Sep 11, 2018

Duplicate of #492

@harryi3t harryi3t marked this as a duplicate of #1854 Sep 11, 2018
@harryi3t harryi3t marked this as a duplicate of #492 Sep 11, 2018
@BartusZak
Copy link

Any update?

@hlubovac
Copy link

This problem is back, evident with v7.16.1

@payitforwardnow
Copy link

Is there a resolution to this issue? I was hoping to use PostMan for automated testing; however, given the fact that the issue with trying to use id_token has been around for literally YEARS I have to conclude that this might not be the best tool for my company to continue using.

@fvalmeida
Copy link

The comments in the issue (#6987) clarified some concepts for me, Postman seems to do the right thing:

@AlexisNarvaez97
Copy link

Follow up?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests