hammad ul aziz2
Mega Guru

The UseCase Scenario

Here is a question that was posted on the community. ClickHere

let's begin. 

Open ID Connect with OKTA



ServiceNow supports External OIDC Provider and required the following parameters 

  • Client ID 
  • Client Secret 
  • Meta URL

navigate to the application navigator and type in the Application Registry and click on NEW  as shown below. 

find_real_file.png

then select the following option from the given choices

find_real_file.png

 

now get the required information from your external server/application and fill in the information as shown below.

find_real_file.png



We can also set up the user provision so that if the user doesn’t exist in ServiceNow and trying to access the ServiceNow APIs with a valid external OKTA token we can create the user at runtime and grant the access for APIs accordingly.
As shown below.

find_real_file.png


Once these configurations are done on the ServiceNow side now we can use the external token to access ServiceNow APIs.
So let’s try to get the token from by performing login to OKTA using PostMan as shown below. And hit the request token button as shown below

find_real_file.png


Let’s fill up the user credentials and Sign In


find_real_file.png


Now as you can see we got the tokens as shown below


find_real_file.png



Now we can use the Id_token as Authorization to access the ServiceNow APIs and ServiceNow will validate this token with okta and then grant the access accordingly.
As shown below we have successfully received the data using that token from ServiceNow.

find_real_file.png

 

please mark this helpful if this helped you in any way.

 

Thanks & Regards

Hammad Ul Aziz (Sr. Developer)

 

Version history
Last update:
‎01-24-2021 03:53 AM
Updated by: