示例#1
0
        public IActionResult SigninExternal(string provider, string returnUrl)
        {
            // Request a redirect to the external login provider.
            var redirectUrl = Url.Action(nameof(SigninExternalCallback), new { returnUrl });
            var properties  = _signInService.ConfigureExternalAuthenticationProperties(provider, redirectUrl);

            return(Challenge(properties, provider));
        }