Skip to main content
October 19, 2022
Question

Oauth 2.0 WebAPI call from Postman

  • October 19, 2022
  • 2 replies
  • 0 views

Hello Team,

We have a WebAPI that needs to be accessed from external system with Oauth 2.0 authorization. For this we setup Web API Authentication in Admin Console and got the Service account, Client ID, Client Secret, and Token request end point. 

When setting up in Postman to test this out, not sure about what to use for the Callback URL and Auth URL - see attached. 

[View:/cfs-file/__key/communityserver-discussions-components-files/18/PostmanSetup.pdf:320:240]

Any pointers how this can be setup properly to test the WebAPI call from Postman?

Appreciate in advance.

Mahesh 

2 replies

daniell
October 19, 2022

Setting up OAuth 2.0 for Web API authentication is specifically using the "Client Credentials Grant", which in my understanding should not require a callback URL / auth URL. Those would be required for "Authorization Code Grant", but that is not what is being configured in the Admin Console under Web API Authentication.

See here: learning.postman.com/.../

October 19, 2022

Dan, 

Yes, you were spot on. Using 'Client Credential'  Grant Type did the trick. Much appreciated.

Best,

Mahesh