【问题标题】:ASP.NET Identity version 3 with MVC 5?带有 MVC 5 的 ASP.NET 标识版本 3?
【发布时间】:2017-10-21 00:06:39
【问题描述】:

我知道我们可以将 asp.net identity 3 与 ASP.NET core 应用程序一起使用,但是我们可以将这个版本的 asp.net 标识与 MVC5 应用程序一起使用吗?我认为我们只能将 asp.net identity 2 与 MVC5 应用程序一起使用,但我不确定。我有一个 MVC5 应用程序,我不想将它转换为核心应用程序。谢谢您的回答。

【问题讨论】:

    标签: asp.net authentication asp.net-core asp.net-identity asp.net-mvc-5


    【解决方案1】:

    Asp.Net Identity 3 是专门为 Asp.Net Core 编写的。由于 Asp.Net Core 发生了重大变化,因此您不能将 Asp.Net Identity 3 与 Asp.Net 4.5 一起使用。如果您不想升级到 Core,则必须坚持使用第 2 版。

    但是,您可以考虑从您的应用程序中删除身份验证。另一种方法可能是为服务器实现 IdentityServer4 (Core) 并为应用程序使用 IdentityServer3 (4.5) 包。

    https://www.scottbrady91.com/Identity-Server/Getting-Started-with-IdentityServer-4

    【讨论】:

    • 非常感谢 Ruard。
    猜你喜欢
    • 2014-11-13
    • 2019-06-08
    • 1970-01-01
    • 2014-09-01
    • 2016-06-15
    • 2015-02-23
    • 1970-01-01
    • 1970-01-01
    • 2012-07-28
    相关资源
    最近更新 更多