This commit is contained in:
master
2026-02-04 19:59:20 +02:00
parent 557feefdc3
commit 5548cf83bf
1479 changed files with 53557 additions and 40339 deletions

View File

@@ -0,0 +1,24 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using System;
namespace StellaOps.Cryptography.Kms;
public static partial class ServiceCollectionExtensions
{
public static IServiceCollection AddFido2Kms(
this IServiceCollection services,
Action<Fido2Options> configure)
{
ArgumentNullException.ThrowIfNull(services);
ArgumentNullException.ThrowIfNull(configure);
RemoveKmsServices(services);
services.Configure(configure);
RegisterKmsProvider(services);
services.TryAddSingleton<IFido2Authenticator, MissingFido2Authenticator>();
services.TryAddSingleton<IKmsClient, Fido2KmsClient>();
return services;
}
}