Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

ServiceNow offers a developer sandbox to interact and develop against their APIs. If you want to try out the ServiceNow Notifer in Iguana XIguanaX, you’ll first need to login or signup for a ServiceNow developer account and create an App:

...

Expand
titleCreate an ssh key pair and upload the public key certificate file to your ServiceNow instance

ServiceNow uses OAuth2.0 JWT API endpoint to authenticate external requests. Therefore we need to upload a public key to ServiceNow so it can verify the integrity of JWT tokens signed by clients (ie. Iguana X), ensuring secure authentication of external requests.

  1. Use OpenSSL command line to generate a key pair. You can use the following sample terminal commands:

Code Block
openssl genrsa -out private.pem 1024
openssl req -new -x509 -key private.pem -out public.cer -days 365
  1. Upload the public key to the X.509 Certificates table. You’ll use the private key in Iguana later.

    1. Use the explorer in the All tab to navigate to System Definition > Certifications.

    2. Click New, fill out the required information and paste your public key.

Screen Shot 2024-04-04 at 12.59.33 PM.pngScreen Shot 2024-04-04 at 1.16.22 PM.pngImage RemovedScreen Shot 2024-04-04 at 1.16.22 PM.pngImage Added
Expand
titleCreate a REST API Auth Scope to provide access to the create scope for the ServiceNow Table API

Navigate to System Web Services > API Auth Scopes > REST API Auth Scope

  1. Create a new auth scope with the appropriate permissions as shown in the screenshot:

    1. REST API: Table API

    2. Auth Scope: create new scope (ex. ticket_create)

Screen Shot 2024-04-04 at 1.29.15 PM.png
Expand
titleCreate an application endpoint (OAuth JWT API endpoint)
  1. Navigate to System OAuth > Application Registry, click New.

  2. Choose Create an OAuth JWT API endpoint for external clients and fill out the required details:

    1. Name: the name of the application endpoint (ex. IguanaX)

    2. OAuth Application User: a non-admin user account used to authenticate the connection. A new user can be created if necessary. (If this field is missing you can add it by right clicking the top grey bar > Configure > Form Design)

    3. Auth Scope: the scope of access that external clients connecting to this endpoint will have. Click Insert a new row, add ticket_create, the scope we previously created.

Screen Shot 2024-04-05 at 10.11.47 AM.pngImage RemovedScreen Shot 2024-04-05 at 10.11.47 AM.pngImage Added
  1. Click Submit and then click on the newly created application. At the bottom of the page, click New to create a Jwt Verifier Map. For sys certificate, select the public key file you previously uploaded.

Screen Shot 2024-04-04 at 1.49.57 PM.pngImage RemovedScreen Shot 2024-04-04 at 1.49.57 PM.pngImage Added
Expand
titleNote down all the authentication details required for Iguana to authenticate

From the current application endpoint page, note down the following fields for your Iguana X IguanaX component:

  1. Instance ID (ex. dev252204)

  2. Client ID

  3. Client Secret (automatically generated)

  4. Jwt Verifier Map Kid (automatically generated)

  5. User field (Email) associated with the selected OAuth Application User (ex. iguanax@demo.com)

Screen Shot 2024-04-04 at 2.02.48 PM.pngImage RemovedScreen Shot 2024-04-04 at 2.02.48 PM.pngImage Added

Head into Iguana X IguanaX to start setting up the ServiceNow Notifier!

...