Ejemplo n.º 1
0
        public async Task <IActionResult> Index(string returnUrl)
        {
            var externalLoginValidation = await _externalLoginService.IsExternalLogin(returnUrl);

            if (externalLoginValidation.IsExternal)
            {
                return(ExternalLogin(externalLoginValidation.IdP, returnUrl));
            }

            ViewData["ReturnUrl"] = returnUrl;
            return(View(ViewUri, new LoginViewModel()));
        }