快速入门提供了各种常见identityserver方案的分步说明。他们从基础到复杂 – 建议您按顺序完成它们。

  • 将identityserver添加到asp.net core应用程序
  • 配置identityserver
  • 为各种客户发放令牌
  • 保护web应用程序和api
  • 添加对基于entityframework的配置的支持
  • 添加对asp.net身份的支持
  • 添加adminui社区版以管理用户和配置

每个快速入门都有一个参考解决方案 – 您可以 在quickstarts文件夹中的identityserver4.samples repo中找到代码 。

8.1 准备

你应该做的第一件事是安装我们的模板:

dotnet new -i identityserver4.templates

它们将被用作各种教程的起点。

好的 – 让我们开始吧!

github地址