我无法理解此问题的性质。我提供stacktrace我所拥有的:

kestrel.service - ASP.NET Core Application running on Ubuntu
   Loaded: loaded (/etc/systemd/system/kestrel.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2017-08-29 14:34:18 BRT; 7s ago
 Main PID: 2356 (dotnet)
    Tasks: 25
   Memory: 173.9M
      CPU: 6.913s
   CGroup: /system.slice/kestrel.service
           └─2356 /usr/bin/dotnet /var/www/publish/Abp.Web.Mvc.dll

Aug 29 14:34:18 ubuntu systemd[1]: Started ASP.NET Core Application running on Ubuntu.
Aug 29 14:34:20 ubuntu dotnet-example[2356]: : Microsoft.AspNetCore.DataProtection.Repositories.EphemeralXmlRepository[50]
Aug 29 14:34:20 ubuntu dotnet-example[2356]:       Using an in-memory repository. Keys will not be persisted to storage.
Aug 29 14:34:20 ubuntu dotnet-example[2356]: warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[59]
Aug 29 14:34:20 ubuntu dotnet-example[2356]:       Neither user profile nor HKLM registry available. Using an ephemeral key repository. Protected data will b
Aug 29 14:34:20 ubuntu dotnet-example[2356]: info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58]
Aug 29 14:34:20 ubuntu dotnet-example[2356]:       Creating key {2a2891cb-5852-4f47-9b1b-c97850fc05cc} with creation date 2017-08-29 17:34:20Z, activation da
Aug 29 14:34:20 ubuntu dotnet-example[2356]: warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
Aug 29 14:34:20 ubuntu dotnet-example[2356]:       No XML encryptor configured. Key {2a2891cb-5852-4f47-9b1b-c97850fc05cc} may be persisted to storage in une
~


非常感谢。

最佳答案

当自省端点接收令牌时,这是正常现象,它必须通过尝试反序列化来确定它是访问令牌,身份令牌,授权代码还是刷新令牌。在这种情况下,OIDC服务器中间件尝试将令牌读取为身份令牌,但未能这样做(这是预期的,因为该令牌很可能是访问令牌)。要配置数据保护并确保密钥环在您之间共享实例

有关更多信息-> https://docs.microsoft.com/en-us/aspnet/core/security/data-protection/configuration/overview

07-28 13:30