Ejemplo n.º 1
0
        public ActionResult Login(DevLoginViewModel model, string returnUrl)
        {
            var redirectUrl = WebHelpers.AppendParameter(ConfigOptions.Value.SecureAuthUrl, "ReturnUrl", $"https://{Request.Host.Host}/Account/ExternalLoginCallback");

            return(ExternalLogin(AuthenticationTypeExternalCookie, redirectUrl));
        }
Ejemplo n.º 2
0
        public ActionResult LoginPostback(string returnUrl)
        {
            var redirectUrl = WebHelpers.AppendParameter(ConfigOptions.Value.SecureAuthUrl, "ReturnUrl", $"https://{Request.Host.Host}/");

            return(new RedirectResult(redirectUrl));
        }