Creating a Custom OAuth Application
Creating a Custom OAuth Application
This procedure registers a custom OAuth application that can be used from the desktop, the web, or a headless machine. It also obtains the OAuth client credentials, the OAuthClientId and OAuthClientSecret.
- If the OAuth plugin for your instance is not active already, activate it.
- Log in to your ServiceNow instance.
- In the Navigator, click System OAuth > Application Registry.
- Click New.
- Click Create an OAuth API Endpoint for External Clients.
- Select the checkbox.
- Enter a name for the new application.
- Set a Client Secret. To have one generated automatically, leave this blank.
- Enter a value in the Redirect URL box:
- If this is a desktop application, set the Redirect URL to http://localhost:33333 or a different port number of your choice.
- If this is a web application, set the Redirect URL to a page on your web application you want the user to be returned to after they have authorized your application.
- Click Submit.
After the application is complete, navigate back to the new application and take note of the OAuthClientId, OAuthClientSecret, and CallbackURL values.