Throw "IDX10223: Lifetime validation failed. The token is expired." when working Azure AD with Microsoft.Owin.Security.OpenIdConnect

I am having that same problem, Someone on the git here saying its bug https://github.com/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/issues/191 but I think its related to your machine time because OpenidConnect OAuth token is valid for 1 hour. If your machine time settings is wrong then it behave like this. You can change the time try to test this. please clear your browser cookies too so framework not use older cookies.


In our case, this was a Docker container issue. After leaving the PC to hibernate, combined with a Docker update of some kind, equalled the Docker container stack in time. A Docker cleanup and a machine reboot, sorted it.


In my case, my date/time settings of Windows Pro 10 (the device I was using to login) was not set automatic. Setting it to get date/time automatic solved the issue.