OAuth Access token is expired. Verify the OAuth configuration and click the 'Get OAuth Token'

Saikumarvv
Tera Contributor

We have successfully integrated ServiceNow with Okta for SaaS license management. The connection is established, and data is being received from Okta. However, the OAuth access token is expiring every hour, requiring us to click on the 'Get OAuth Token' link to request a new token each time. Is there a solution to this issue?

Saikumar1_0-1709037620196.png

 

4 REPLIES 4

tan_david
Tera Contributor

Did you get a solution for this? I am facing something similar. 

dreinhardt
Tera Sage

Hi @Saikumarvv @tan_david,

 

the token issue is not related to SAMP, as the expiration is a Okta setting. 

Please check the following two Okta KB's which should help. Adjust the lifetime of the token to be longer than weekly SaaS import schedule is configured

 

Best, Dennis

 

Should my response prove helpful, please consider marking it as the Accepted Solution/Helpful to assist closing this thread.

Runjay Patel
Giga Sage

Hi @Saikumarvv ,

 

Due to security policy most of the tool expire the token .

you need to write schedule job to get it and store it in one property and before it get expired you need to hit and get the new one. In your api call use the token stores in property.

 

Accept the solution if it helped.