immersive-reader-sdk icon indicating copy to clipboard operation
immersive-reader-sdk copied to clipboard

Azure AI Immersive Reader Token Expired every time

Open SampathChintala opened this issue 1 year ago • 2 comments

I setup an Azure Immersive Reader SDK for use in an ASP.Net MVC application using the Microsoft Learn tutorials. This all worked fine but now have an issue where the token is always shown as expired expired. I have given correct TenantId, ClientId, ClientSecret and Subdomain. Can some one help me on this. TokenExpire

SampathChintala avatar Aug 04 '24 11:08 SampathChintala

Hi @SampathChintala

please double check that you are getting the token in right way; here is our nodeJS code sample where you can check the api call. And you can also verify the token is passed correctly to the launchAsync function. See our sample here:

cristobal-buenrostro avatar Aug 05 '24 20:08 cristobal-buenrostro

Hi @SampathChintala , anything else we can help here?

cristobal-buenrostro avatar Sep 13 '24 16:09 cristobal-buenrostro

Closing the issue as no response is received from the customer.

v-rmanda avatar Dec 11 '24 05:12 v-rmanda

hello @cristobal-buenrostro . I have the same issue. I get TokenExpired, but the timestamp seems to be ok. I have the integration with Immersive Reader for a long time and everything was fine when it was set using OAuth with client id/secret pair. now it seems that the Keys and Endpoints area of the Azure app, sets key1 and key2 and based on the docs I found out that one needs to be used and the code for the request for token needs to be changed. I managed to adapt the code and receive a JWT token and when decoded it seems to look ok. I also updated the CDN js sdk url for IReader from 1.0.0 to 1.4.0. but each time I start the request to load the IReader I get the Token Expired error.

antoniu86 avatar Apr 24 '25 11:04 antoniu86