예제 #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));
        }
예제 #2
0
        public ActionResult LoginPostback(string returnUrl)
        {
            var redirectUrl = WebHelpers.AppendParameter(ConfigOptions.Value.SecureAuthUrl, "ReturnUrl", $"https://{Request.Host.Host}/");

            return(new RedirectResult(redirectUrl));
        }