2016-10-11 2 views
3
services.AddDataProtection() 
.SetApplicationName("Report Book Resource Server") 
.PersistKeysToFileSystem(new DirectoryInfo(folderForKeyStore)) 
.ProtectKeysWithCertificate(cert); 

La dernière ligne ".ProtectKeysWithCertificate (cert);" renvoie une erreur. Cependant, le tutoriel here doesnt. Je n'arrive pas à comprendre pourquoi la méthode "ProtectKeysWithCertificate()" est de retour. J'apprécierai beaucoup si quelqu'un là-bas pouvait me faire plaisir.Erreur lors de l'appel de la méthode .ProtectKeysWithCertificate (cert) dans l'implémentation du serveur de ressources IdentitySer4

Merci

+0

À titre de suivi. J'utilise ASP.NET Core 1.1 pour une application et les mêmes idées derrière ce tutoriel. Je ne pouvais plus trouver la méthode .ProtectKeysWithCertificate() dans Microsoft.AspNetCore.DataProtection Version = 1.1.0.0. https://i.stack.imgur.com/9k2Wg.jpg –

Répondre