예제 #1
0
        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"));
        }
예제 #2
0
        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"));
        }