This tutorial is based on official ServiceNow documentation and best practices. For further details, please refer to the following resources:
OAuth (Open Authorization) is an industry-standard protocol for token-based authentication and authorization. It allows applications to securely exchange information without exposing user credentials directly. This guide will walk you through setting up OAuth with Inbound REST within your ServiceNow instance, enabling secure communication with external clients like Automate365.
Set up OAuth in ServiceNow
Before configuring Automate365, you need to set up ServiceNow to act as an OAuth provider for external clients.
Step 1: Access your ServiceNow instance
First, log in to your ServiceNow instance using your administrator credentials. Navigate to the main dashboard to access the various modules and settings.
Step 2: Register an OAuth provider application
This step involves registering Automate365 as an OAuth application within ServiceNow.
In the top-left navigation, click All.
In the filter navigator (search input), type
Application Registry
.Under System OAuth, select Application Registry.
Click New in the top-right corner.
Select Create an OAuth API endpoint for external clients.
Fill out the form with the following details:
Name: Provide a clear, descriptive name for this OAuth policy (e.g.,
Automate365 Integration OAuth
).Client ID: This value identifies your OAuth application.
Note this value for the Automate 365 configuration.
Client Secret: This secret key will be generated automatically after you submit the form.
Note this value for the Automate 365 configuration. Ensure you copy it immediately after generation, as it may not be viewable again.
Redirect URL: Enter the official BindTuning API URL:
https://auth.bindtuning.com/api/authentication/callback
Logo URL: (Optional) If desired, set a URL for a logo to appear when users approve the application's consent request.
Click Submit.
Take note: The Client ID and Client Secret generated here are crucial for configuring the Automate365 connection. Ensure you copy these values immediately, as they may not be viewable again after you leave this page.
Connect ServiceNow to Automate365
Now that your OAuth provider is set up in ServiceNow, you can use OAuth to connect securely to Automate365. When setting up the ServiceNow connection within an Automation:
Use the Client ID value you obtained from ServiceNow (as explained in Part 1).
Use the Client Secret value generated in ServiceNow (as explained in Part 1).
Refer to our article Connect to ServiceNow, for the full instructions on setting up and configuring the connection.