Applications based on this frameworks requires to be configured using an appsettings.json file that will contains sections that defines the application desired configuration.
Use the appsettings.json
to configure framework options as explained below.
Connection strings are configured as a standard .NET configuration.
The connection string names (Default and Host in the following example) must match the name os the DatabaseApis objects defined within the KpokPatagon : Data : DatabaseApis section.
{
"ConnectionStrings": {
"Default": "<connection-string-configuration>",
"Host": "<connection-string-configuration>"
}
}
The cryptography sections allows to configured the cryptography functionality
from KpokPatagon.Security.Cryptography
.
{
...
"KpokPatagon": {
"Security": {
"Cryptography": {
"AsymmetricKeyFileName": "<asymmetric-key-file-name>",
"HashAlgorithmSaltEnabled": true,
"SymmetricAlgorithmKeyFileName": "<symmetric-key-file-name>",
"PreviousSymmetricAlgorithmKeyFileName": "<previous-symmetric-key-file-name>"
}
}
"Data": { ... }
}
}
Specifies the path to a file that contains the keys used for asymmetric encryption.
Specifies if a
Specifies the type of the symmetric algorithm to use for encryption as a qualified type name.
If nothing is provided Aes
algorithm is used.
Specifies the path to a file that contains the key used previously for symmetric encryption.
In this document