一、identityerver4Demo项目建立

1、利用net core cli命令安装学习模板

1.1、在cmd中执行 dotnet new -i IdentityServer4.Templates 命令

安装成功后显示如下:

1.2、在运行dotnet new命令查看模板是否安装成功

如果出现这5个模板则彻底安装成功

2、建立第一个demo项目

 2.1、在想要建立项目的文件夹的地址栏中直接输入cmd并回车,(右键打开CMD或者powershell都可以)

2.2、执行dotnet new is4inmem --name id4demo1

(is4inmem和模板简称相对应,--name xxx用于项目命名)

出现The template "IdentityServer4 with In-Memory Stores and Test Users" was created successfully.则建立项目成功

3、在VS中打开项目,并启动

出现下图则启动成功。

 

发布了6 篇原创文章 · 获赞 1 · 访问量 2195

猜你喜欢

转载自blog.csdn.net/sxy_student/article/details/104102605