常用方法
常用方法
常用方法
常用方法
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)); }