【问题标题】:Identity server 4 AspNet Identity Missing method身份服务器 4 AspNet Identity Missing 方法
【发布时间】:2017-03-09 17:08:03
【问题描述】:

我有一个 angular 2 页面,其中包含一个尝试通过令牌端点在 Identity Server 4 上进行身份验证的服务。

我正在尝试将 Identity Server 4 与 Entity Framework Core 用于客户端和范围,并为用户使用 AspNet Identity

但我得到一个奇怪的 Missing 方法异常

Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[0]
  An unhandled exception has occurred while executing the request
System.MissingMethodException: Method not found: 'Microsoft.EntityFrameworkCore.Query.IIncludableQueryable`2<!!0,!!2> Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ThenInclude(Microsoft.EntityFrameworkCore.Query.IIncludableQueryable`2<!!0,System.Collections.Generic.ICollection`1<!!1>>, System.Linq.Expressions.Expression`1<System.Func`2<!!1,!!2>>)'.

这发生在验证客户端和范围之后

我不明白错误是什么...如果您需要任何代码,请询问

【问题讨论】:

标签: asp.net-identity identityserver4


【解决方案1】:

听起来您使用的是 .NET Core 1.1。由于在安全库中引入了错误/重大更改,IdentityServer 4 尚不支持 .NET Core 1.1。

请参阅https://twitter.com/leastprivilege/status/801723059149357056 了解完整讨论。

编辑

IdentityServer 4 现在支持 .NET Core 1.1 和 csproj。

【讨论】:

  • 那我该如何降级呢?我需要做什么?
猜你喜欢
  • 2017-11-26
  • 2020-11-17
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-07-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多