创建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测试,如下图:

posted @ 2020-04-28 19:41  Cody&  阅读(316)  评论(0编辑  收藏  举报