Using Third-party OAuth provider for authenticating Inbound REST API

DhananjayM
Tera Guru

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

27 REPLIES 27

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

DirkRedeker
Mega Sage

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

Srini10
Kilo Contributor

Hi 

Has this problem solved in later versions of ServiceNow ?. We are currently on Rome.  Following links referenced above are not active anymore. 

  1. Inbound OAuth Auth Code Grant Flow Part 1 - Getting Started with Postman
  2. 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

Joe Handley
Tera Contributor

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.

jaheerhattiwale
Mega Sage
Mega Sage

@DhananjayM Go to "Connections & Credentials > Credentials" module and create OAuth profile. Please try this

Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023