The Zurich release has arrived! Interested in new features and functionalities? Click here for more

OAuth Token from ServiceNow Not Working but Works in Postman

snow57
Tera Contributor

Hi Everyone,

I’m working on an integration where we are required to use OAuth authentication. I’ve set up the OAuth profile in ServiceNow, but I’m running into an issue:

The token we get from ServiceNow’s OAuth setup is not working for the integration.

However, when I test the same OAuth flow in Postman, it works fine.

In Postman, I need to first fetch the token separately using username and password, and then use that token separately in the request header.

If I try to combine these steps directly, the integration doesn’t work.

In ServiceNow, we don’t have the option to explicitly provide the username/password in the OAuth profile the same way we do in Postman.

Has anyone faced a similar issue? If yes, how did you handle it in ServiceNow?
Any pointers or best practices for configuring OAuth authentication correctly in this type of scenario would be really helpful.

Thanks in advance!

5 REPLIES 5

Hi Ankur,

 

Thanks for the response. Sure, i will follow that. But here, the question is why do we need to use both credentials type like basic auth and Oauth ?

 

Thanks,

Sai.