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.87k stars 841 forks source link

Do not open default browser unless requested by user #12640

Open Technie-DSAID opened 9 months ago

Technie-DSAID commented 9 months ago

Is there an existing issue for this?

Describe the Issue

I use a google account B on google chrome to sign into postman.

I have my company SSO on microsoft edge, and that's my default browser.

When postman tries to sign in, it automatically pops up the default browser. but I cannot sign in to postman from there.

When I copied the URL and paste it into google chrome, it claims the token is already used. (error 403)

Using the "manually open" or "copy url" option does not work as it is the same auth url which has already been used and wasted by the default browser.


This is a bug, as postman should not assume that the user wants to use the default browser to sign in.

postman should prompt the user to trigger the default browser, or, when allowing the user to copy the auth url manully, generate a new auth url that's different from the url generated for the auto triggered browser.

Which Postman App or Web platform and Operating System version you are using. You can check this out in the Settings icon in the top right > Settings > About section.

Ans: unable to get information as I am unable to even sign in.

Is the bug reproducible every time, or do you see it occasionally? Provide the full steps to reproduce the problem.

Ans: every time I try to log into Postman App

Did you first encounter it recently, or has it always been there?

Ans: I have encounterd it since starting to use postman in Oct 2023. I'm not a postman user before that, so I am unable to comment on whether this issue happened before that.

Steps To Reproduce

  1. Try to sign in on postman desktop.
  2. "copy the URL" and try to open the copied link in another browser.
  3. Encounter 403 error in the browser.

Screenshots or Videos

No response

Operating System

Windows

Postman Version

version downloaded after Oct 2023. Unable to get as unable to login.

Postman Platform

Postman App

User Account Type

Signed In User

Additional Context?

No response

derekpovah commented 8 months ago

I just downloaded the latest version of Postman for Linux, switched my default browser temporarily to work around the issue, and was able to grab version info.

Postman for Linux Version: 10.24.7 UI Version: 10.24.7-ui-240320-0056 Desktop platform version: 10.24.3 Architecture: x64 OS platform: linux 6.6.10-76060610-generic

thesuavehog commented 8 months ago

I also face this issue. Basically everyone with multiple browser profiles should have this issue. The whole point of keeping multiple Chrome/Edge/etc. profiles is to keep data and accounts separated. Assuming the default browser in whatever profile was last focused (on Windows at least) is the exact one for the specific login you want to use for that Postman instance is silly.

I am fine with it trying to open the browser, but the Postman desktop UX should let me copy-paste the link and open it in the correct browser/profile to complete the login. The "copy url" link on the login page is extremely misleading and basically only useful if no browser at all loads.

A simple (?) mitigation would be to let me copy and url from that page with a new token so it's not expired when I try and use it.

morimoto-ltd commented 6 months ago

Same issue. Should be an easy fix, have no clue why it's still not fixed.

saurabhkagrawal commented 5 months ago

I have similar problem, because I want to open incognito mode for my admin user, but in postman this does not work