Skip to content

Commit

Permalink
Merge pull request #398 from Aguafrommars/fix/storagekind-typo
Browse files Browse the repository at this point in the history
fix: storage kind filesystem typo
  • Loading branch information
aguacongas authored Mar 30, 2021
2 parents c51aea2 + 8350b39 commit f78784b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions sample/Kubernetes/TheIdServer-public-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ data:
DisableStrictSsl: "true"
EnableOpenApiDoc: "false"
IdentityServer__Key__Type: KeysRotation
IdentityServer__Key__StorageKind: FileSytem
IdentityServer__Key__StorageKind: FileSystem
IdentityServer__Key__StorageConnectionString: "/usr/local/share/keys/signing"
IdentityServer__Key__KeyProtectionOptions__KeyProtectionKind: "X509"
IdentityServer__Key__KeyProtectionOptions__X509CertificatePath: /usr/local/share/ca-certificates/theidserver.pfx
DataProtectionOptions__StorageKind: FileSytem
DataProtectionOptions__StorageKind: FileSystem
DataProtectionOptions__StorageConnectionString: "/usr/local/share/keys/dataprotecttion"
DataProtectionOptions__KeyProtectionOptions__KeyProtectionKind: "X509"
DataProtectionOptions__KeyProtectionOptions__X509CertificatePath: /usr/local/share/ca-certificates/theidserver.pfx
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static IDataProtectionBuilder ConfigureDataProtection(this IDataProtectio
case StorageKind.RavenDb:
builder.PersistKeysToRavenDb<DocumentSessionWrapper>();
break;
case StorageKind.FileSytem:
case StorageKind.FileSystem:
builder.PersistKeysToFileSystem(new DirectoryInfo(dataProtectionsOptions.StorageConnectionString));
break;
case StorageKind.Redis:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static IIdentityServerBuilder ConfigureKey(this IIdentityServerBuilder id
case StorageKind.RavenDb:
builder.PersistKeysToRavenDb<DocumentSessionWrapper>();
break;
case StorageKind.FileSytem:
case StorageKind.FileSystem:
builder.PersistKeysToFileSystem(new DirectoryInfo(dataProtectionsOptions.StorageConnectionString));
break;
case StorageKind.Redis:
Expand Down
2 changes: 1 addition & 1 deletion src/Aguacongas.TheIdServer/Models/DataProtectionOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public enum StorageKind
EntityFramework,
Redis,
AzureStorage,
FileSytem,
FileSystem,
Registry,
RavenDb
}
Expand Down
4 changes: 2 additions & 2 deletions test/Aguacongas.TheIdServer.Test/StartupTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public void Configure_should_configure_data_protection_fs_storage()
{
var configuration = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string>
{
["DataProtectionOptions:StorageKind"] = StorageKind.FileSytem.ToString(),
["DataProtectionOptions:StorageKind"] = StorageKind.FileSystem.ToString(),
["DataProtectionOptions:StorageConnectionString"] = @"C:\test"
}).Build();
var environementMock = new Mock<IWebHostEnvironment>();
Expand Down Expand Up @@ -639,7 +639,7 @@ public void Configure_should_configure_keys_rotation_fs_storage()
var configuration = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string>
{
["IdentityServer:Key:Type"] = KeyKinds.KeysRotation.ToString(),
["IdentityServer:Key:StorageKind"] = StorageKind.FileSytem.ToString(),
["IdentityServer:Key:StorageKind"] = StorageKind.FileSystem.ToString(),
["IdentityServer:Key:StorageConnectionString"] = @"C:\test"
}).Build();
var environementMock = new Mock<IWebHostEnvironment>();
Expand Down

0 comments on commit f78784b

Please sign in to comment.