Configure OAuth Flow callback URL in ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2020 01:17 PM
I'm connecting to ServiceNow from Salesforce and have created a custom authentication provider for ServiceNow to initiate an OAuth Flow and return the OAuth Token and Refresh Token. The authentication provider class I wrote generated a callback URL that needs to be configured within ServiceNow. I'm not sure where I need to configure the callback URL within ServiceNow. The authentication provider properly initiates the OAuth Flow and takes me to the ServiceNow login, which I'm able to successfully login to ServiceNow with the credentials. At that point, I should be redirected back to Salesforce using the callback URL. However, this step is missing and has not been configured in ServiceNow. Where in should the callback URL be configured in ServiceNow to redirect back to Salesforce so that my authentication provider class can handle the callback and run the code that executes the OAuth Flow that returns the OAuth Token and Refresh Token. I've successfully run the code in the Salesforce dev console to confirm that the callout is successful. The missing step is configuring the callback URL in ServiceNow correctly. Can anyone point me to where this would be configured?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2020 01:17 PM
You should enter that info as part of the Redirect URL https://docs.servicenow.com/bundle/newyork-platform-administration/page/administer/security/task/t_C...
Let me know if I'm not understanding the requirement entirely.
- Pradeep Sharma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2020 01:38 PM
Hi Pradeep,
Thank you for replying to my post. I'm completely new to ServiceNow. I was looking at the documentation you provided in the link. I'm trying to locate where I need to navigate to set the redirectURL. I've logged into ServiceNow, but I cannot seem to find where I can navigate to: System OAuth >> Application Registry
Where do I find this in ServiceNow? Is there a specific keyword I can search in the left side bar to where I need to navigate to find the Application Registry? I'm logged in as an admin, but I don't see anything where it says "system oauth" or "application registry". Please let me know if this does not make sense?