public static void SignOut(HttpRequest request) { var owinContext = request.GetOwinContext(); owinContext.Authentication.SignOut(); }
public static void SignIn(HttpRequest request, string username) { var identity = GetIdentity(username); var owinContext = request.GetOwinContext(); owinContext.Authentication.SignIn(identity); }