1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-03 00:52:49 -05:00

Refactor WebAuthn IoC container (#1302)

* Refactor WebAuthn IoC container

* Move to AddDefaultServices
This commit is contained in:
Oscar Hinton
2021-05-06 10:17:12 +02:00
committed by GitHub
parent 7cae9d5e47
commit cae204cb7c
7 changed files with 14 additions and 54 deletions

View File

@ -49,15 +49,6 @@ namespace Bit.Billing
// Context
services.AddScoped<ICurrentContext, CurrentContext>();
// Fido2
services.AddFido2(options =>
{
options.ServerDomain = new Uri(globalSettings.BaseServiceUri.Vault).Host;
options.ServerName = "Bitwarden";
options.Origin = globalSettings.BaseServiceUri.Vault;
options.TimestampDriftTolerance = 300000;
});
// Identity
services.AddCustomIdentityServices(globalSettings);
//services.AddPasswordlessIdentityServices<ReadOnlyDatabaseIdentityUserStore>(globalSettings);