I setup a while ago an Azure Immersive Reader SDK for use in an ASP.Net MVC application (4.5) using the Microsoft Learn tutorials. This all worked fine but now have an issue where the token is always expired (after months of use weirdly).
On further debugging I found the accesstoken returned to have an expireson that was perfectly valid (60 mins). Yet the immersive reader SDK returns this:
I have confirmed the token and subdomain is correct before ImmersiveReader.LaunchAsync(tkn,subdomain,data,options) fires. It loads the frame and start of immersive reader still but getting that message. At this point hard to debug as using the Microsoft library from that point: https://contentstorage.onenote.office.net/onenoteltir/immersivereadersdk/immersive-reader-sdk.1.0.0.js
CodePudding user response:
I'm Ryan from the Immersive Reader team here. The issue may be something other than expired token. Looks like our code returns Expired on any 401 response returned from our service, whether it is actually expired or perhaps something else.
I suggest you post a new issue on our github repo here - https://github.com/microsoft/immersive-reader-sdk/issues
I can work 1:1 with you on debugging this and we can report our findings back here.
Thanks!