Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typos in StorageKind cause error parsing applicationsettings.json #397

Closed
ben-jacobs opened this issue Mar 30, 2021 · 0 comments · Fixed by #398 or #420
Closed

Typos in StorageKind cause error parsing applicationsettings.json #397

ben-jacobs opened this issue Mar 30, 2021 · 0 comments · Fixed by #398 or #420
Assignees
Labels
bug Something isn't working

Comments

@ben-jacobs
Copy link

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>();

@ben-jacobs ben-jacobs added the bug Something isn't working label Mar 30, 2021
@aguacongas aguacongas self-assigned this Mar 30, 2021
aguacongas pushed a commit that referenced this issue Mar 30, 2021
aguacongas pushed a commit that referenced this issue Apr 3, 2021
# [2.3.0](2.2.0...2.3.0) (2021-04-03)

### Bug Fixes

* add role store test ([caeb0a3](caeb0a3))
* cannot add localized resource ([fd5d9f5](fd5d9f5))
* cannot set client IDP restriction ([9835e82](9835e82))
* client settings lost on save in UI ([5b83178](5b83178)), closes [#407](#407)
* request on datetime ([ff15d71](ff15d71)), closes [#399](#399)
* set valid audience ([d1bd88a](d1bd88a)), closes [#388](#388)
* storage kind filesystem typo ([8350b39](8350b39)), closes [#397](#397)
* **ravendb:** update entity remove navigation props ([6a12d69](6a12d69)), closes [#407](#407)
* update packages ([721a47b](721a47b))
* update packages ([4f78aae](4f78aae))
* update packages ([b7f8c8c](b7f8c8c))
* update packages ([de160ce](de160ce))
* update packages ([aff1c9f](aff1c9f))
* update packages ([3d4df84](3d4df84))
* update packages ([cef74c4](cef74c4))
* update packages ([23254cc](23254cc))
* update packages ([86127c0](86127c0))
* update packages ([f94b3dc](f94b3dc))
* update packages ([47ab913](47ab913))

### Features

* ravendb ([c050afa](c050afa))
* wsfederation provider ([0295b1f](0295b1f)), closes [#403](#403)
aguacongas pushed a commit that referenced this issue Apr 7, 2021
# [2.3.0](2.2.0...2.3.0) (2021-04-07)

### Bug Fixes

* add role store test ([caeb0a3](caeb0a3))
* cannot add localized resource ([fd5d9f5](fd5d9f5))
* cannot set client IDP restriction ([9835e82](9835e82))
* client settings lost on save in UI ([5b83178](5b83178)), closes [#407](#407)
* request on datetime ([ff15d71](ff15d71)), closes [#399](#399)
* set valid audience ([d1bd88a](d1bd88a)), closes [#388](#388)
* storage kind filesystem typo ([8350b39](8350b39)), closes [#397](#397)
* **ravendb:** update entity remove navigation props ([6a12d69](6a12d69)), closes [#407](#407)
* update packages ([269e31d](269e31d))
* update packages ([d9f2cb0](d9f2cb0))
* update packages ([721a47b](721a47b))
* update packages ([4f78aae](4f78aae))
* update packages ([b7f8c8c](b7f8c8c))
* update packages ([de160ce](de160ce))
* update packages ([aff1c9f](aff1c9f))
* update packages ([3d4df84](3d4df84))
* update packages ([cef74c4](cef74c4))
* update packages ([23254cc](23254cc))
* update packages ([86127c0](86127c0))
* update packages ([f94b3dc](f94b3dc))
* update packages ([47ab913](47ab913))

### Features

* ravendb ([c050afa](c050afa))
* wsfederation provider ([0295b1f](0295b1f)), closes [#403](#403)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants