我已经参考了这三个资源来开始使用Identity Server 4:
非常感谢任何形式的帮助。我尝试包含尽可能多的复制步骤,如果有任何不清楚的地方,请告诉我。
重复登录弹出窗口: IIS已设置为启用Windows认证和匿名认证。 Setup.CS(ConfigureServices方法)
- IdentityServer4.Quickstart.UI
- 4_ImplicitFlowAuthenticationWithExternal
- Combined_AspNetIdentity_and_EntityFrameworkStorage
非常感谢任何形式的帮助。我尝试包含尽可能多的复制步骤,如果有任何不清楚的地方,请告诉我。
重复登录弹出窗口: IIS已设置为启用Windows认证和匿名认证。 Setup.CS(ConfigureServices方法)
public void ConfigureServices(IServiceCollection services) {
// Windows authentication is supported only by hosting Kestrel (Asp.net Core Web Server inside iis as a reverse proxy)
// It is different than other Authentication methods because you don't Add the Authentication middleware like above.
services.Configure<IISOptions>(options => {
options.AuthenticationDisplayName = "Windows";
options.AutomaticAuthentication = true;
});
services.AddMvc();
Program.cs
public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
.UseStartup<Startup>()
.Build();