Using Third-party OAuth provider for authenticating Inbound REST API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2017 10:38 PM
Hi Team,
I am trying to figure out a way through which I can easily authenticate inbound REST API request (Table API) using OAuth from a Third-party provider. I have gone through different community links but haven't really found if this is feasible or not, and if possible what is the recommeded way. Has anyone here attempted doing this?
Please help me out as we are final stages of development and this one piece is puzzle is still unresolved.
Thanks,
Dhananjay
- Labels:
-
Integrations
- 5,442 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2019 03:53 AM
Hi,
Thank you for your quick response, but it was not helpful.
What I want to do is: 1) Get a token from a Third Party Provider(for instance Auth0, that is connected with our Active Directory). 2) Call the ServiceNow table API and authenticate with that token.
(I tried following these instructions, but I cannot get it towork : https://docs.servicenow.com/bundle/madrid-platform-administration/page/administer/security/task/add-...)
About the links you mention:
The first link is for a inbound REST request where you get a token from ServiceNow with your ServiceNow user and password. We have Single Sign On and I don't use / know my ServiceNow password.
The second link seems to be for an Outbound REST request, when ServiceNow needs to call a Third Party API.
Regards,
Gabrz

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2020 03:05 AM
HI
Today we are on Orlando. Is there any way to achieve what you are asking for? I am looking for the same thing right now.
Thanks for letting me know.
BR
Dirk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2022 10:24 AM
Hi
Has this problem solved in later versions of ServiceNow ?. We are currently on Rome. Following links referenced above are not active anymore.
- Inbound OAuth Auth Code Grant Flow Part 1 - Getting Started with Postman
- Inbound OAuth Auth Code Grant Flow Part 2 - Using OAuth and Passport.js in a Node.js/Express Web App
Any help is greatly appreciated.
Rgds Srini

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2022 09:12 AM - edited 12-20-2022 09:13 AM
I am also looking for this solution, as we have requirements from our security office to authenticate all communications through Okta. I can only seem to get the OAuth access token generated by ServiceNow, even though I have set up a 3rd party OAuth provider record. Attached are two diagrams... One for the expected behavior, and the second the current behavior we're seeing in the logs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2022 09:54 AM
@DhananjayM Go to "Connections & Credentials > Credentials" module and create OAuth profile. Please try this
ServiceNow Community Rising Star, Class of 2023