我有个应用,想在客户登录时候使用IdentityServer4的OpenID Connect认证,参考的是该文章
https://www.cnblogs.com/stulzq/p/7797341.html
如何在后台用户登录时候同时使用Identity认证?
services.AddAuthentication(options => { options.DefaultScheme = "Cookies"; options.DefaultChallengeScheme = "oidc"; }) .AddCookie("Cookies") .AddOpenIdConnect("oidc", options => { options.Authority = "http://localhost:5000"; options.RequireHttpsMetadata = false; options.ClientId = "mvc"; options.SaveTokens = true; });