1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 15:42:48 -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

@ -66,15 +66,6 @@ namespace Bit.Admin
services.AddBaseServices();
services.AddDefaultServices(globalSettings);
// Fido2
services.AddFido2(options =>
{
options.ServerDomain = new Uri(globalSettings.BaseServiceUri.Vault).Host;
options.ServerName = "Bitwarden";
options.Origin = globalSettings.BaseServiceUri.Vault;
options.TimestampDriftTolerance = 300000;
});
// Mvc
services.AddMvc(config =>
{