- 23 Feb 2022
- 1 Minute To Read
-
Print
-
DarkLight
-
PDF
Generating ServiceNow credentials
- Updated On 23 Feb 2022
- 1 Minute To Read
-
Print
-
DarkLight
-
PDF
ServiceNow application can be integrated with Whatfix to fetch and display content from your ServiceNow repository as contextual links in Self Help and Task List widgets. You can either fetch all the content or only the content in particular folders.
You need the following prerequisites from ServiceNow to integrate content with Whatfix:
- Client ID
- Client Secret
- Authorization Code
Log-in to the ServiceNow Developer console, open your Instance, and follow the steps shown in the slideshow to generate the necessary credentials.
Use the following steps to generate the Authorization code,
- Copy and paste the following URL in your preferred browser.
Remember to make the following changes in the code.
- Replace {your-instance-name} with the instance name obtained earlier.
- Replace {redirect-url} with the Redirect URL.
- Replace {client_id} with the Client ID.
- Replace {unique-id} with any 4-digit numerical value.
https://{your-instance-name}/oauth_auth.do?response_type=code&redirect_uri={redirect-url}&client_id={client-id}&state={unique-id}&grant_type=authorization_code
-
Click Allow.
-
Once the page loads, copy the URL that appears on your browser.
-
The value of the access_token parameter in the URL is the Authorization code.
https://dev68258.service-now.com/oauth.redirect.do#access_token=<Authorization_code_generated>&state=1234&expires_in=1800
The Authorization code generated is valid only for 1 minute.
To increase the validity of the code, follow the procedure mentioned in the article, Manage OAuth tokens.