创建IdentityServer4 (1)

该项目使用dotnet版本3.1 ,vs code创建

创建AuthServer项目

首先命令安装模版
dotnet new -i IdentityServer4.Templates
创建AuthServer
dotnet new is4inmem --name AuthServer

在cnfig.cs文件修改 下图 画线部分(使用用户名密码)

然后运行项目,在浏览器输入http://localhost:5000/打开IdentityServer4页面

也可用postman测试,如下图:

原文地址:https://www.cnblogs.com/hwxing/p/12740603.html