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

OAuth 'Authorize Using Browser' Callback Fails #13335

Open
1 task done
soe-jyskefinans-dk opened this issue Dec 15, 2024 · 0 comments
Open
1 task done

OAuth 'Authorize Using Browser' Callback Fails #13335

soe-jyskefinans-dk opened this issue Dec 15, 2024 · 0 comments

Comments

@soe-jyskefinans-dk
Copy link

Is there an existing issue for this?

  • I have searched the tracker for existing similar issues and I know that duplicates will be closed

Describe the Issue

When selecting "Get New Access Token" and choosing "Authorize using browser", Postman does not successfully retrieve the token. The browser-based authentication completes successfully, but Postman remains stuck on the "Get new access token" dialog and never receives the token. Pop-ups are allowed in the browser, so that is not the issue.

While investigating, I noticed that Postman’s JavaScript calls window.open(url) with a callback URL that looks like this:

postman://app/oauth2/callback#access_token=[access token]&token_type=Bearer&expires_in=5107&scope=https%3a%2f%2fvault.azure.net%2fuser_impersonation+https%3a%2f%2fvault.azure.net%2f.default&session_state=[session state GUID]

If I take this URL and paste it into the browser as-is, nothing happens. However, if I remove the session_state query parameter and paste the remaining URL into the browser, Postman immediately receives the token. This suggests that the handling of the session_state parameter might be causing the issue.

Environment Details:

Postman version: 11.22.1

Steps To Reproduce

  1. Setup authorization as shown in the screenshot below (Auth URL is https://login.microsoftonline.com/[Tenant ID]/oauth2/v2.0/authorize
  2. Press "Get New Access Token"

Screenshots or Videos

image

Operating System

Windows

Postman Version

11.22.1

Postman Platform

Postman App

User Account Type

Signed In User

Additional Context?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant