public ActionResult SSORedirect() { var identity = _authenticationService.SSOReturnForApplicants(HttpContext); _userManager.FindByIdentity(identity); return(RedirectToAction("FinaliseOptions")); }
public ActionResult SSORedirect() { try { var identity = _authenticationService.SSOReturnForScreeners(HttpContext); _userManager.FindByIdentity(identity); } catch (UnauthorizedAccessException) { return(RedirectToAction("Index", "Home")); } return(RedirectToAction("ViewApplicants")); }