【问题标题】:Identity Server Difference between IdentityServer4.EntityFramework and IdentityServer4.AspNetIdentityIdentityServer4.EntityFramework 和 IdentityServer4.AspNetIdentity 之间的身份服务器区别
【发布时间】:2016-12-20 20:25:03
【问题描述】:

我是 Identity Server 的新手,所以请多多包涵。试图了解 Identity Server 4 中的以下两个库。

IdentityServer4.EntityFramework IdentityServer4.AspNetIdentity

我知道这有助于 EF 和 AspNet。查看源代码和实体,它们都有完全不同的实体。 AspNetIdentity 有与用户、角色等相关的实体,而 EntityFramework 有诸如客户端、资源等的实体。但两者都有 UserClaim,这让我有点困惑。是否可以在项目中同时使用这两个库?还是应该只使用 on 或 other?

如果我们可以同时使用这两个库,那么我们可以对两个库中的 UserClaim 实体做什么?

谢谢,

【问题讨论】:

    标签: c# entity-framework asp.net-identity identityserver3 identityserver4


    【解决方案1】:

    ASP.NET Identity 是用户存储、密码验证、2FA 等的一个选项(它可以基于 EF - 但这不是重点)

    EF 库用于将配置数据(如客户端和资源)以及运行时状态(代码、刷新令牌等)持久保存到 EF 支持数据库。

    是的 - 它们可以一起使用。

    【讨论】:

    猜你喜欢
    • 2021-06-23
    • 2019-08-08
    • 1970-01-01
    • 1970-01-01
    • 2018-01-02
    • 2020-09-30
    • 2022-11-21
    • 1970-01-01
    • 2020-08-20
    相关资源
    最近更新 更多