获取最新代码
$ dotnet new -i IdentityServer4.Templates
$ dotnet new is4inmem --name Idp
取消https限制
public void ConfigureServices(IServiceCollection services)
{
// 配置cookie策略
services.Configure<CookiePolicyOptions>(options =>
{
options.MinimumSameSitePolicy = Microsoft.AspNetCore.Http.SameSiteMode.Lax;
});
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
app.UseCookiePolicy();
}