2017-08-29 140 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