- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 12:36 PM
Hi Community,
I have developed an OAuth application in my personal developer instance to pull incident details from ServiceNow. The OAuth flow I followed is outlined here: https://docs.servicenow.com/bundle/rome-platform-administration/page/administer/security/concept/c_O...
Current Situation:
My OAuth application works perfectly for my developer instance.
However, I want to develop this app to support multiple/different ServiceNow instances, i.e., it should work for any user with a ServiceNow setup.
Challenge:
Currently, I need to set up the OAuth app on every instance that I want to access.
The endpoint URL format I use is https://instanceName.service-now.com/oauth_auth.do?response_type=token..., which requires knowing the instanceName.
Questions:
1. Does ServiceNow provide the functionality to develop a centralized OAuth application that can be used across different instances? If not in the Personal Developer Instance, is this available in a paid instance?
2. If ServiceNow does not support this, is there any other authentication method available other than username and password that can be centrally managed and accessible?
I am looking for a solution that allows my application to authenticate and access any ServiceNow instance without needing separate OAuth setups for each instance.
Thanks in advance for your help!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2024 06:14 AM
Hi @sanyamsanya ,
ServiceNow follows a multi-instance architecture. You have to configure your OAuth client app in the application registry of each instance from which you want to pull the data. each instance has a dedicated token URL.
https://instancename.service-now.com/oauth_token.do
To answer your question:
1. Does ServiceNow provide the functionality to develop a centralized OAuth application that can be used across different instances? If not in the Personal Developer Instance, is this available in a paid instance?
A: No, ServiceNow does not provide such functionality.
2. If ServiceNow does not support this, is there any other authentication method available other than username and password that can be centrally managed and accessible?
A: ServiceNow API authentication product doc
Thanks,
Randheer

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2024 06:14 AM
Hi @sanyamsanya ,
ServiceNow follows a multi-instance architecture. You have to configure your OAuth client app in the application registry of each instance from which you want to pull the data. each instance has a dedicated token URL.
https://instancename.service-now.com/oauth_token.do
To answer your question:
1. Does ServiceNow provide the functionality to develop a centralized OAuth application that can be used across different instances? If not in the Personal Developer Instance, is this available in a paid instance?
A: No, ServiceNow does not provide such functionality.
2. If ServiceNow does not support this, is there any other authentication method available other than username and password that can be centrally managed and accessible?
A: ServiceNow API authentication product doc
Thanks,
Randheer