Пример #1
0
        public ActionResult SocialLogin(AuthenticationTypeProvider id)
        {
            var authenticationProperties = new AuthenticationProperties
            {
                RedirectUri = "/Login/Success",
                IsPersistent = true
            };

            this.HttpContext.GetOwinContext().Authentication.Challenge(authenticationProperties, id.ToString());
            return new HttpUnauthorizedResult();
        }
Пример #2
0
        public ActionResult SocialLogin(AuthenticationTypeProvider id)
        {
            var authenticationProperties = new AuthenticationProperties
            {
                RedirectUri  = "/Login/Success",
                IsPersistent = true
            };

            this.HttpContext.GetOwinContext().Authentication.Challenge(authenticationProperties, id.ToString());
            return(new HttpUnauthorizedResult());
        }