OAuth 2.0 redirect URL

JK1
Giga Expert

Hello experts!

I came across an issue with OAuth 2.0 authenticating to a 3-rd party app. It seems its not working and I was wondering what I am doing wrong, as I followed the guide step by step. Well it turned out there might be small error in the guide itself. When you use <your-instance>.service-now.com/linkage.do instead of the shown in the guides redirect all seems to work just fine.

The application you are authenticating to should look like below. Screenshot from SNOW as well of the setup (this is for LinkedIn app).

I hope that this will help to someone doing this and save the"head bangin' " and the time, this costed me .

find_real_file.png

find_real_file.png

Cheers,

Joro

5 REPLIES 5

JK1
Giga Expert

If someone needs a hand on this, let me know. Will gladly assist.



Cheers,



Joro


Hi ,


A requirement is an integration of Servicenow with Yammer using REST.


Got stuck in getting oauth token.


Could you please help me out in getting oAuth2.0 token.



Attached are the screenshots of configurations.yammerConfig.pngoAuth_ServiceNow_Config.pngPostCall_ServiceNow.pngoauth error_token.png


Inactive_Us1738
Kilo Expert

Hi JK,

One of our client requirement is to fetch servicenow(client) instance knowledge articles in to miscrosoft applications(sharepoint). This can be achieved through Microsoft search connector, for this we have created API end point

Steps to create end point

  1. Navigate to System OAuth > Application Registry
  2. Click New button > Create an OAuth API endpoint for external clients
  3. Fill in below fields
    i. Name: Unique name
    ii. Client ID: Auto populated
    iii. Client Secret: Leave blank to auto generate password
    iv. Redirect URL: https://xxxxx.sharepoint.com/oauth/callbackhttps://xxxxx.sharepoint.com/oauth_redirect.do
    v. Active: Select checkbox
    vi. Refresh Token Lifespan: 8640000 seconds
    vii. Access Token Lifespan: 1800 seconds
    viii. Submit

We have provided servicenow instance link, client id and client secret to get connected, upon submission it is throwing with exception "Invalid Redirect_URI"

Let me know how to achieve this.

we have the exact issue ,may i know how did u solved it