diff --git a/OpenAuth.Mvc/Startup.cs b/OpenAuth.Mvc/Startup.cs index 9c7f693c..acf22b32 100644 --- a/OpenAuth.Mvc/Startup.cs +++ b/OpenAuth.Mvc/Startup.cs @@ -97,6 +97,8 @@ namespace OpenAuth.Mvc services.AddDbContext(); services.AddHttpClient(); + + services.AddDataProtection().PersistKeysToFileSystem(new DirectoryInfo(Configuration["DataProtection"])); services.AddDataProtection().PersistKeysToFileSystem(new DirectoryInfo(Configuration["DataProtection"])); var sqlsugarTypes = UtilMethods.EnumToDictionary();