private void AuthenticateWithToken(Token token) { ClaimsIdentity identity = CreateClaimsIdentity(token); Microsoft.Owin.Security.IAuthenticationManager authenticationManager = System.Web.HttpContext.Current.GetOwinContext().Authentication; authenticationManager.SignIn(identity); }