Added data protection keys to web iodc middleware regirtration method
continuous-integration/drone/pr Build is passing

This commit is contained in:
Khwezi Mngoma
2026-06-13 23:34:07 +02:00
parent 0ec7ef4861
commit dfaa62ea75
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -53,6 +53,12 @@ public static class Api
public static IServiceCollection AddLiteCharmsWebSecurity(this IServiceCollection services, IConfiguration configuration)
{
var keysFolder = Path.Combine("/app/shared-keys");
services.AddDataProtection()
.PersistKeysToFileSystem(new DirectoryInfo(keysFolder))
.SetApplicationName("MidrandBooks");
var configSection = configuration.GetSection(nameof(LiteCharmsSettings));
var authOptions = new LiteCharmsSettings();