-
Notifications
You must be signed in to change notification settings - Fork 854
Support multiple OAuth2 setups #7537
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
Comments
Yes please, this is quite an important feature. I've filled in all 7 fields, and it works, but when I switch to a different collection or even a different workspace, and want to get an OAuth2.0 token from a different provider, I notice that all the 7 fields still keep all the same values as from before. So it means it is unable to record collection specific settings for GET NEW ACCESS TOKEN |
At the moment if you have multiple OAuth2 projects, you are kinda blocked by Postman, unless you want to copy and paste the token manually each time the session expires. |
I think the values should be stored on the Workspace, Collection or Request, just like the Authorization Bearer token is specific to the Workspace, Collection and Request. |
I think this is a bug rather than a feature request. Other forms of authorization (like basic) seem to remain distinct between collections, whereas oAuth2 settings seem to overwrite each other across collections. |
The workaround I'm now using is to add a pre-request script to grab a token to the Collection and then use Environment variables to keep track of what's available. Changing the Environment will grab the correct token.
|
Hi everyone, We have made a few changes in OAuth 2.0 helper in the Postman app to address the problems discussed here. These changes are available in the Postman Canary. Please download the latest Postman Canary app and check it out. See the issue #9056 to know more about the changes. Feel free to leave your feedback at #9056. |
@timothyhoffmann @dirkesquire @marshallr12 Could you try our Canary build and see if the solution meets your requirements? |
Can you check if the recent changes to Auth fixes your problem? Please check out app version 8.1. |
I tend to switch between several different OAuth2 controlled APIs so it would be great if the current Get New Access Token screen was just a dropdown list of Settings (with an add/edit button) which would contain all the fields (except possibly Token Name) so I could swap quickly between different setups by selecting the setup name from the dropdown rather than having to copy/paste in the 7 fields from a Notepad to change which API I need a token from.
e.g. Something like this:

The text was updated successfully, but these errors were encountered: