OAuth2.0 and REST API - missing access token

Michaela Stewar
Giga Contributor

Hi there,

 

My colleagues and I have been working on a little project on our downtime - we're attempting to integrate the Reddit REST API with ServiceNow so we can put posts from the ServiceNow subreddit in a table. This is mainly to provide us with some practice in using REST APIs and getting to grips with the integration of them within ServiceNow. 

We've set up the Outbound Integration and created an OAuth Provider using our client credentials provided by Reddit. We've even tested authenticating with Postman and had no issues.

find_real_file.png

However, when we try to 'Get OAuth Token' it fails - saying the access token is missing.

find_real_file.png

We're not sure where we're going wrong so if anyone can provide any insight that would be wonderful.

 

Thanks in advance

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Michaela,

So what is the difference in the API request in Postman and ServiceNow i.e. difference in terms of parameter values

Can you share screenshot from postman? are you able to get access token properly in Postman?

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

I'm not aware of any difference between the API request in Postman and in SNOW. 

Below is a screenshot from Postman showing how I'm getting the token - and yes I am able to get the access token in Postman.

find_real_file.png

Thanks again 🙂