Create an OAuth API Endpoint for External Clients
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sunday
Hello @Everyone,
I recently came across the option “Create an OAuth API endpoint for external clients” under Application Registry and wanted to understand it better.
In my earlier integrations, I have used “Connect to a third-party OAuth Provider”, where:
I register the ServiceNow application in the target application.
The target application provides a Client ID and Client Secret.
These credentials are then configured in the ServiceNow -> Application Registry.
After that, a consent popup appears which we approve to establish the connection.
However, with “Create an OAuth API endpoint for external clients”, I have a few questions:
1. If the requirement is to fetch data from a target application, why do we create an OAuth endpoint for an external client?
Why can’t we directly use Connect to a third-party OAuth Provider in this case?
2. When using “Create an OAuth API endpoint for external clients”, how does the data flow work?
How do we receive data from the target application?
Do we need to create custom actions or Scripted REST APIs to consume the target application’s APIs?
How are connections and credentials configured in this approach?
Please let me know if my understanding is correct or if I’m missing something.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
Hello @mdshahvez11 ,
We don’t use “Connect to a third-party OAuth Provider” because that option is for cases where ServiceNow is the OAuth client and calls an external system.
To create an external client link (Client ID / Client Secret) so that external applications can authenticate into ServiceNow, we must use “Create an OAuth API endpoint for external clients”, where ServiceNow acts as the OAuth provider.
If this helps you then mark it as helpful and accept as solution.
Regards,
Aditya,
Technical consultant
