I am trying to install validateInterval
for an ASP.NET 5 RC1 application that usesASP.NET Identity 3
I am trying to implement code in this answer.
there are many code examples like this answer , but it seems to be invalid in ASP.NET 5 RC1
app.UseCookieAuthentication(new CookieAuthenticationOptions
{
Provider = new CookieAuthenticationProvider
{
OnValidateIdentity = SecurityStampValidator.OnValidateIdentity<ApplicationUserManager, ApplicationUser>(
validateInterval: TimeSpan.FromMinutes(15)
},
ExpireTimeSpan = TimeSpan.FromMinutes(30)
});
If I try to use the above code example in ASP.NET 5 RC1
, I cannot how
Provider
is not a property CookieAuthenticationOptions
and Visual Studio cannot find CookieAuthenticationProvider
in any namespace through its light bulb options.
How to install validateInterval
in ASP.NET 5 RC1
?
source
share