5

我无法理解这个问题的本质。我提供了我所拥有的堆栈跟踪:

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
~

非常感谢。

4

1 回答 1

0

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

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

于 2017-09-05T07:07:14.120 回答