【问题标题】:Reference to type 'AuthenticationOptions' claims it is defined in 'Microsoft.AspNetCore.Authentication', but it could not be found对类型“AuthenticationOptions”的引用声称它在“Microsoft.AspNetCore.Authentication”中定义,但找不到
【发布时间】:2017-09-01 18:35:27
【问题描述】:

我正在尝试运行“UseIdentityServerAuthentication”并传入 IdentityServerAuthenticationOptions 并在 Asp.Net Core 2 中收到此错误。

从网上看,这似乎在 Asp.Net Core 2 Preview 2 的路线图上,我正在运行它的最新版本,所以我认为它现在就可以使用了。

【问题讨论】:

    标签: asp.net-core asp.net-identity


    【解决方案1】:

    我想你想要的是IdentityOptions,可以在https://github.com/aspnet/Identity/blob/eb3ff7fc32dbfff65a1ba6dfdca16487e0f6fc41/src/Microsoft.Extensions.Identity.Core/IdentityOptions.cs 找到。它应该在 Microsoft.AspNetCore.Identity Nuget 包中可用。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-11-23
    • 2018-09-12
    • 2018-10-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-07
    • 2012-08-19
    相关资源
    最近更新 更多