IdentServer2 使用不同方式实现(swagger+client+html+postman)
获取最新代码
$ 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();
}