Throw "IDX10223: Lifetime validation failed. The token is expired." when working Azure AD with Microsoft.Owin.Security.OpenIdConnect
<p>I'm integrating the &quot;Microsoft Azure AD&quot; to our Asp.NET web projects, all works fine following the guide shown at <a href="https://azure.microsoft.com/en-us/documentation/articles/active-directory-devquickstarts-webapp-dotnet/" rel="nofollow noreferrer">https://azure.microsoft.com/en-us/documentation/articles/active-directory-devquickstarts-webapp-dotnet/</a>, even I deploy it to IIS 8.5. However, thing goes bad when I keep the page in Chrome for one night and try to access it again the next morning by doing a refresh, it runs into the exception:</p>
<pre><code>Server Error in '/' Application.
--------------------------------------------------------------------------
IDX10223: Lifetime validation failed. The token is expired.
ValidTo: '05/19/2016 10:45:59'
Current time: '05/19/2016 21:46:31'.
</code></pre>
<p>Anybody experienced the same problem? How can I refresh the Token? I tried doing Signout directly and changed the public address, but all doesn't work.</p>
<p>BTW, I did some research, but all mentioned is that it has been resolved in &quot;AspNet.Security.OpenIdConnect.Server&quot; instead of &quot;Microsoft.Owin.Security.OpenIdConnect&quot;.</p>