IdentServer1 环境搭建

IdentServer1 环境搭建

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();
}

posted @ 2021-10-22 13:43  CHHC  阅读(44)  评论(0编辑  收藏  举报