In ASP.NET 5 MVC 6 RC1, how can I extract AuthenticationPropertiesfrom a controller or from a filter? HttpContext.Authenticationdoesn't seem to have this feature.
I thought about registering the handler CookieAuthenticationEvents.OnValidatePrincipal, and then using the property Propertiesin the argument CookieValidatePrincipalContext. Then I could store these AuthenticationPropertiesin the query cache, so that later I could get things like IssuedUtc.
Is there a better solution where I don't need to store it?
I do not use the ASP.NET identifier, but the cookie middleware as standalone.
source
share