2017-08-29 125 views
1

我无法理解这个问题的本质。我提供stacktrace我得到:如何解决在Ubuntu这些警告?

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 
~ 

非常感谢。

回答

0

这是正常的,当自省端点接收的令牌,它必须确定它是否是一个访问令牌,身份令牌,授权码或尝试反序列化成为一个刷新令牌。在这种情况下,OIDC服务器中间件试图读取该令牌作为令牌身份并没有这样做(这是意料之中的,因为令牌可能访问令牌)。为了配置数据保护,并确保关键环您共享实例

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