常用方法
常用方法
常用方法
常用方法
public async Task ExternalLogin(string provider, string returnUrl = null) { returnUrl = Url.Action(nameof(ExternalLoginCallback), "Account", new { returnUrl }); var properties = await _userEngine.ExterAuthConfigureProperties(provider, returnUrl); await HttpContext.ChallengeAsync(provider, properties); }