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,427 Views

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2017 08:43 AM
Hi Dhananjay,
The form you're using in this screenshot is for consuming external REST APIs that require OAuth (outbound). The Token URL is used to configure the endpoint ServiceNow will use to retrieve tokens when communicating with an external API. Example: Retrieve a token from Google and use that token to call the Google Calendar API from ServiceNow.
The scenario you describe: "authenticate inbound REST API request (Table API) using OAuth from a Third-party provider" is not strictly possible. ServiceNow must generate the tokens used by external apps.
Starting with Istanbul, ServiceNow supports inbound Auth Code Grant Flow which gives you more flexibility and may be closer to what you're looking for. Using ACGF, users are redirected to the ServiceNow UI to authorize the request. If there is a 3rd party SSO provider configured, they will be redirected to that SSO provider to log in and redirected back to ServiceNow to authorize the flow. This means the external app is never aware of the username/password, only the token retrieved upon completing the authorization flow.
I've written a few blog posts about using Auth Code Grant Flow in Istanbul:
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
I realize these do not directly address your current use case, but take a look and see if this sort of functionality will meet your needs. The challenge for you is that Istanbul is required.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2017 02:10 AM
Thanks joshnerius. I had actually gone through the links before writing this but since Auth Code Grant Flow is available only in Istanbul, it is not an option for me. Is there someway we can mimic this in Helsinki?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2017 10:13 AM
HI Sergiu,
Did you get a chance to look at my comments?
Thanks,
Dhananjay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2017 01:28 PM
Just a friendly reminder that the wiki content hasn't been updated since Fuji. Best to check docs.servicenow.com which has the latest product documentation. We've made lots of improvements to the docs site. Most recently we made additional improvements to search and added API content.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2017 02:58 AM
Hello Experts!
Any input on this problem?
Thanks,
Dhananjay