private IActionResult LoginNextDomain(string authId) { var ssoAuthResponse = _sSOAuthenticationRequestService.FindByDomainId(authId, THIS_DOMAIN_ID); if (ssoAuthResponse.IsSuccessStatusCode) { var redirectUrl = $"{ssoAuthResponse.ResponseData?.RedirectUrl}?i={authId}"; return(Redirect(redirectUrl)); } return(UnauthorizeError("LoginNextDomain")); }
public async Task <IActionResult> LogoutNext(string i) { var findSSOAuthInfo = _sSOAuthenticationRequestService.FindByDomainId(i, PORTAL_DOMAIN_ID); if (findSSOAuthInfo.IsSuccessStatusCode) { await LogoutAsync(); return(LogoutNextDomain(findSSOAuthInfo.ResponseData)); } return(UnauthorizeError("LogoutNext")); }