Ejemplo n.º 1
0
        public IActionResult LinkLogin(string provider)
        {
            // Request a redirect to the external login provider to link a login for the current user
            var redirectUrl = Url.Action("LinkLoginCallback", "Manage");
            var properties  = _signInManager.ConfigureExternalAuthenticationProperties(provider, redirectUrl, User.GetUserId());

            return(new ChallengeResult(provider, properties));
        }