Open mwiedemeyer opened 1 month ago
Were you able to find a solution for this? I am running into the same issue
No. I hope to get an answer from Microsoft here..
No answer yet on this? it also happens if you create a web app, in my case, I'm having an error similar to this when using asp OWIN in MVC .Net Framework app. I thought Identity.Web would handle refresh tokens by itself.
Microsoft.Identity.Web Library
Microsoft.Identity.Web
Microsoft.Identity.Web version
2.19.0
Web app
Sign-in users
Web API
Protected web APIs call downstream web APIs
Token cache serialization
In-memory caches
Description
I'm using Azure App Service EasyAuth and
Microsoft.Identity.Web
andMicrosoft.Identity.Web.GraphServiceClient
with the following code in a Blazor 8 SSR web app:The issue here is, that the user is logged in even after 1h, because of the "session" lifetime of the App Service auth cookie
AppServiceAuthSession
. However, the injectedGraphServiceClient
looses access after 1h because the token expires. Here is the detailed explanation from March without an answer.Reproduction steps
Program.cs
:MyCustomGraphService.cs
:TestUser
method with a button click. Then wait >1h and test againError message
Message: Lifetime validation failed, the token is expired.
Id Web logs
No response
Relevant code snippets
Regression
No response
Expected behavior
Not sure, how this should work. However I want to work with the web app even after 1h without restarting my browser.