public void SignOut() { // clear cache for current user in token cache TokenManager.ClearUserCache(); // sign out and reidrect to home page string callbackUrl = Url.Action("Index", "Home", routeValues: null, protocol: Request.Url.Scheme); HttpContext.GetOwinContext().Authentication.SignOut( new AuthenticationProperties { RedirectUri = callbackUrl }, OpenIdConnectAuthenticationDefaults.AuthenticationType, CookieAuthenticationDefaults.AuthenticationType); }