Skip to main content
Kofax

Access Token Has Expired or is Not Yet Valid Error for MSGraph

Article # 3035032 - Page views: 3409

Issue

Facing error "Access token has expired or is not yet valid" error for MS graph when using the Authorization Code grant type.

Cause

With the Authorization Code grant, tokens are account based.
But with client credentials grant, token are Azure AD application (client) based.

Solution

Based on the cause of the issue, switching to the Client Credentials grant should avoid this token expiry issue.

Above being said, and as a general rule for KIC, the access token life time is 59 minutes.

In KIC, access tokens get refreshed every half an hour.
So the Access token expired error, will be seen when the KC Plug-In service is stopped for more than 1 hour.
The life time of Refresh token is 90 days.

So, ensure that the KC Plug-In service is not stopped for more than 90 days.


The following Microsoft article describes the default scope URL for Client Credentials: 
Get access without a user - Microsoft Graph | Microsoft Docs

Please see the following Kofax Import Connector documentation for more information:

Level of Complexity 

Moderate

 

Applies to  

Product Version Build Environment Hardware
Kofax Import Connector 2.10
2.9
2.8
ALL ALL N/A

 

 

Article # 3035032
  • Was this article helpful?