public ActionResult Impersonate(string ticket) { //Terminate existing user session _userAccessTokenProvider.DestroyAccessToken(); var newUser = _userService.ImpersonateUser(ticket); _userAccessTokenProvider.SetUserAccessToken(newUser); return(RedirectToAction("Index", "Me")); }
public ActionResult Logout() { _accessTokenProvider.DestroyAccessToken(); return(RedirectToAction("Index", "Home")); }