From 40b296f57af12d61c2b2cebe5af23cb843fdfd89 Mon Sep 17 00:00:00 2001 From: Elin Fokine Date: Wed, 26 Aug 2026 13:59:51 +0200 Subject: [PATCH] Update used key store flags for production environment in sample project. --- samples/Standalone.MvcSample/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/Standalone.MvcSample/Program.cs b/samples/Standalone.MvcSample/Program.cs index 5efa57cb..cbc3d983 100644 --- a/samples/Standalone.MvcSample/Program.cs +++ b/samples/Standalone.MvcSample/Program.cs @@ -1,4 +1,5 @@ using System.Globalization; +using System.Security.Cryptography.X509Certificates; using ActiveLogin.Authentication.BankId.AspNetCore; using ActiveLogin.Authentication.BankId.AspNetCore.Auth; @@ -90,7 +91,7 @@ else { bankId.UseProductionEnvironment() - .UseClientCertificateFromAzureKeyVault(configuration.GetSection("ActiveLogin:BankId:ClientCertificate")); + .UseClientCertificateFromAzureKeyVault(configuration.GetSection("ActiveLogin:BankId:ClientCertificate"), X509KeyStorageFlags.MachineKeySet | X509KeyStorageFlags.Exportable); } });