Authentication OAuth
Contents
Description
Authenticate using ServiceNow instance username, password, OAuth Client ID, and Client Secret. [API reference]
Instructions
Create OAuth application and use it for authentication:
- Login to your instance at https://your-instance-id.service-now.com.
-
Start by clicking on menu item All, then search for oauth, and click Application Registry option:
-
Then click button New:
-
Continue by clicking Create an OAuth API endpoint for external clients option:
-
Move on by naming your OAuth application and entering a Client Secret (or let it be generated automatically).
-
Finally give it a final touch by increasing the Refresh Token Lifespan value to
315,360,000
(it should last for 10 years): -
Done! Now you can use Client ID and Client Secret when configuring OAuth Authentication parameters.
Parameters
Parameter | Label | Required | Default value | Options | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
InstanceName | InstanceName | YES |
|
||||||||||
UserName | User name | YES |
|
||||||||||
Password | Password | YES |
|
||||||||||
ClientId | Client ID | YES |
|
||||||||||
ClientSecret | Client Secret | YES |
|
||||||||||
ApiVersion | ApiVersion | YES |
v2
|
|
|
||||||||
RetryMode | RetryMode |
RetryWhenStatusCodeMatch
|
|
|
|||||||||
RetryStatusCodeList | RetryStatusCodeList |
429|503
|
|
||||||||||
RetryCountMax | RetryCountMax |
5
|
|
||||||||||
RetryMultiplyWaitTime | RetryMultiplyWaitTime |
True
|
|