c# - 了解 Identityserver4 和 Identity(cookie/ token 、服务器架构)

标签 c# asp.net-core asp.net-identity identityserver4

当我无法了解整体情况时,我无法理解这一切是如何结合在一起的。对于初学者来说这是一个很大的话题。

当 Identity 的 cookie 及其所有默认模板/页面与 IdentityServer 结合使用时,当它发出 token 时,有什么意义?

为什么即使使用 SPA 客户端,这些页面也包含在所有示例中?重点不就是能够通过 API 进行授权/身份验证/注册吗?

我看到很多人建议应该在自己的项目中拥有IdentityServer,然后将用户数据库单独放在本地网络上,这怎么可能?我还没有找到这样的样本。

为什么需要将用户数据库与资源 API 分开,而 IdentityServer4 和 Identity 组合在一起不就是自己的 API 吗?

感谢您的时间和帮助。

最佳答案

Identity Server 应该始终是一个单独的项目,并且它应该是唯一可以直接访问用户数据库的项目。 Here是一个有关 Identity Server 的精彩视频,也是一个较新的视频 here ,和here是一个很棒的 github 仓库,我使用的 IS 项目几乎已经完成。希望对您有所帮助。

关于c# - 了解 Identityserver4 和 Identity(cookie/ token 、服务器架构),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58464847/

相关文章:

c# - 没有 Entity Framework 的 Asp.Net Owin 身份验证

c# - .Net Framework 项目上的 Visual Studio 代码分析

c# - 获取运行Sap logon vb6的GuiApplication to c#

c# - Quartz.net - 如何跳到 next_fire_time?

c# - ASP.NET Core 2.2 在多对多插入时返回 "NotSupportedException: Collection was of a fixed size"

c# - ASP.NET Core 在 json post 请求正文中传递 antiforgerytoken

asp.net-core - 如何获取ResourceManager中的所有key

c# - 授权(角色 = "Admin")总是返回拒绝访问

asp.net-core - 如何使用 Postman 调用 Identity Server 4 进行登录

c# - 串成数组