Ejemplo n.º 1
0
	    public static void SignOut(HttpRequest request)
	    {
            var owinContext = request.GetOwinContext();
	        owinContext.Authentication.SignOut();
	    }
Ejemplo n.º 2
0
 public static void SignIn(HttpRequest request, string username)
 {
     var identity = GetIdentity(username);
     var owinContext = request.GetOwinContext();
     owinContext.Authentication.SignIn(identity);
 }