ASP.NETCORE identity简化(隐形)模式 客户端
1、服务端配置 RequireConsent=false, RedirectUris={ "http://localhost:44355/signin-oidc"}, PostLogoutRedirectUris={ "http://localhost:44355/signout-callback-oidc"}, AllowedScopes={IdentityServerConstants.StandardScopes.Profile,IdentityServerConstants.StandardScopes.OpenId } ,//可以访问的resource

2、客户端配置 services.AddMvc(); servi罕铞泱殳ces.AddAuthentication(options => { options.DefaultScheme = "Cookie"; options.DefaultChallengeScheme = "oidc"; }) .AddCookie("Cookies") .AddOpenIdConnect("oidc",options=> { options.SignInScheme = "Cookies"; options.Authority = "http://localhost:600"; options.RequireHttpsMetadata = false; options.ClientId = "testppp"; options.ClientSecret = "secret1122"; options.SaveTokens = true; }) ;

3、完成