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.81k stars 839 forks source link

Postman API Authorization OAuth2 Collection Level Get New Access Token Error #13019

Open mmurphy-asg opened 1 month ago

mmurphy-asg commented 1 month ago

Is there an existing issue for this?

Describe the Issue

I am following this guide to test Google API calls. https://quickstarts.postman.com/guide/google-oauth-in-postman/index.html?index=..%2F..index#0 When trying to configure the Authorization at the collection level, I am getting "Missing required parameter: client_id" in the google dialog popup when i click the "Get New Access Token" button (see screenshot). The clientID and clientSecret are set in variables (see screenshot).

When setting the OAuth2 authorization at the HTTP request level, when i click the "Get New Access Token" button I get the correct dialog asking me to authorizae access and a access token is returned as expected.

Steps To Reproduce

  1. follow instructions in this guide https://quickstarts.postman.com/guide/google-oauth-in-postman/index.html?index=..%2F..index#0
  2. Try to setup Oauth2 authentication at the collection level.
  3. Set get call to use Authorization from parent.

Screenshots or Videos

postman1 postman2

Operating System

macOS

Postman Version

11.4.0-240705-0657

Postman Platform

Postman Web

User Account Type

Signed In User

Additional Context?

No response

giridharvc7 commented 1 month ago

May be Google's Oauth needs client ID to be sent as a part of the token request as well? You can customise this through the advanced options in Oauth

image