postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.78k stars 837 forks source link

OAuth browser windows don't use configured proxies #10010

Open JimmyPruitt opened 3 years ago

JimmyPruitt commented 3 years ago

Describe the Issue

The OAuth endpoints that I have to use to generate tokens for my API are behind a VPN and I can only access them using a proxy. I've configured the proxy in the Postman settings and all requests, which also need to go through the proxy, all work correctly. But when I use the inbuilt Postman browser windows to acquire OAuth tokens, the proxy isn't used.

Steps to Reproduce

  1. Configure a proxy in the Postman settings
  2. Create a collection and change its authorization type to OAuth2 -> Implicit grant
  3. Complete the entire form for the OAuth URLs and credentials, leaving the "Authorize using browser" unchecked. For the URLs use endpoints that can only be accessed through the Proxy configured in step 1
  4. Click the "Get New Access Token" and attempt to generate a token. Note the inability to do so

Screenshots or Videos

Environment Information

claudehsu commented 2 years ago

I got the same issue with below environment information

My walkaround is to

The drawback is the walkaround needs to change the proxy setting on the OS level and to me that is a bad practice. Hope this can be fixed on the code level.

Wurstnase commented 2 years ago

The system proxy is not working in my amazon linux workspace.

I'm trying to use OAuth2.0 -> Authorization Code (With PKCE).

Environment Information

r0naldmcd0nald commented 1 month ago

Hi, I have the same issue: Postman OAuth2.0 Browser doesn't make use of proxy settings.