var authenticationManager = HttpContext.Current.GetOwinContext().Authentication;
im using vs2013 and this line of code is not working
it says
Error 1 "System.Security.Principal.IPrincipal" does not contain a definition for "GetOwinContext", and there is no extension method "GetOwinContext" that takes the first argument of type "System.Security.Principal.IPrincipal" that can be found (you do not have a directive using or assembly reference?)
Class AuthenticationManagerresolves namespaceSystem.Net
source
share