Aguafrommars / TheIdServer

OpenID/Connect, OAuth2, WS-Federation and SAML 2.0 server based on Duende IdentityServer and ITFoxtec Identity SAML 2.0 with its admin UI

Home Page:https://theidserver-duende.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typos in StorageKind cause error parsing applicationsettings.json

ben-jacobs opened this issue · comments

diff --git a/src/Aguacongas.TheIdServer/Extensions/DataProtectionBuilderExtentions.cs b/src/Aguacongas.TheIdServer/Extensions/DataProtectionBuilderExtentions.cs
index e88f6743..1ea46113 100644
--- a/src/Aguacongas.TheIdServer/Extensions/DataProtectionBuilderExtentions.cs
+++ b/src/Aguacongas.TheIdServer/Extensions/DataProtectionBuilderExtentions.cs
@@ -44,7 +44,7 @@ namespace Microsoft.Extensions.DependencyInjection
                 case StorageKind.RavenDb:
                     builder.PersistKeysToRavenDb<DocumentSessionWrapper>();
                     break;
-                case StorageKind.FileSystem:
+                case StorageKind.FileSytem:
                     builder.PersistKeysToFileSystem(new DirectoryInfo(dataProtectionsOptions.StorageConnectionString));
                     break;
                 case StorageKind.Redis:
diff --git a/src/Aguacongas.TheIdServer/Extensions/IdentityServerBuilderExtensions.cs b/src/Aguacongas.TheIdServer/Extensions/IdentityServerBuilderExtensions.cs
index 302dd332..09d86c55 100644
--- a/src/Aguacongas.TheIdServer/Extensions/IdentityServerBuilderExtensions.cs
+++ b/src/Aguacongas.TheIdServer/Extensions/IdentityServerBuilderExtensions.cs
@@ -38,7 +38,7 @@ namespace Microsoft.Extensions.DependencyInjection
                 case StorageKind.RavenDb:
                     builder.PersistKeysToRavenDb<DocumentSessionWrapper>();
                     break;
-                case StorageKind.FileSystem:
+                case StorageKind.FileSytem:
                     builder.PersistKeysToFileSystem(new DirectoryInfo(dataProtectionsOptions.StorageConnectionString));
                     break;
                 case StorageKind.Redis:
diff --git a/src/Aguacongas.TheIdServer/Models/DataProtectionOptions.cs b/src/Aguacongas.TheIdServer/Models/DataProtectionOptions.cs
index 66fdc7a9..bee7ff85 100644
--- a/src/Aguacongas.TheIdServer/Models/DataProtectionOptions.cs
+++ b/src/Aguacongas.TheIdServer/Models/DataProtectionOptions.cs
@@ -10,7 +10,7 @@ namespace Aguacongas.TheIdServer.Models
         EntityFramework,
         Redis,
         AzureStorage,
-        FileSystem,
+        FileSytem,
         Registry,
         RavenDb
     }
diff --git a/test/Aguacongas.TheIdServer.Test/StartupTest.cs b/test/Aguacongas.TheIdServer.Test/StartupTest.cs
index a8847d47..2116fec4 100644
--- a/test/Aguacongas.TheIdServer.Test/StartupTest.cs
+++ b/test/Aguacongas.TheIdServer.Test/StartupTest.cs
@@ -268,7 +268,7 @@ namespace Aguacongas.TheIdServer.Test
         {
             var configuration = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string>
             {
-                ["DataProtectionOptions:StorageKind"] = StorageKind.FileSystem.ToString(),
+                ["DataProtectionOptions:StorageKind"] = StorageKind.FileSytem.ToString(),
                 ["DataProtectionOptions:StorageConnectionString"] = @"C:\test"
             }).Build();
             var environementMock = new Mock<IWebHostEnvironment>();
@@ -639,7 +639,7 @@ namespace Aguacongas.TheIdServer.Test
             var configuration = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string>
             {
                 ["IdentityServer:Key:Type"] = KeyKinds.KeysRotation.ToString(),
-                ["IdentityServer:Key:StorageKind"] = StorageKind.FileSystem.ToString(),
+                ["IdentityServer:Key:StorageKind"] = StorageKind.FileSytem.ToString(),
                 ["IdentityServer:Key:StorageConnectionString"] = @"C:\test"
             }).Build();
             var environementMock = new Mock<IWebHostEnvironment>();