mirror of
https://github.com/bitwarden/server.git
synced 2024-11-28 13:15:12 +01:00
Added fido2 registration to other services
This commit is contained in:
parent
5095d8eb49
commit
8f64f4a99f
@ -46,6 +46,15 @@ namespace Bit.Portal
|
|||||||
services.AddScoped<ICurrentContext, CurrentContext>((serviceProvider) =>
|
services.AddScoped<ICurrentContext, CurrentContext>((serviceProvider) =>
|
||||||
serviceProvider.GetService<EnterprisePortalCurrentContext>());
|
serviceProvider.GetService<EnterprisePortalCurrentContext>());
|
||||||
|
|
||||||
|
// Fido2
|
||||||
|
services.AddFido2(options =>
|
||||||
|
{
|
||||||
|
options.ServerDomain = new Uri(globalSettings.BaseServiceUri.Vault).Host;
|
||||||
|
options.ServerName = "Bitwarden";
|
||||||
|
options.Origin = globalSettings.BaseServiceUri.Vault;
|
||||||
|
options.TimestampDriftTolerance = 300000;
|
||||||
|
});
|
||||||
|
|
||||||
// Identity
|
// Identity
|
||||||
services.AddEnterprisePortalTokenIdentityServices();
|
services.AddEnterprisePortalTokenIdentityServices();
|
||||||
if (globalSettings.SelfHosted)
|
if (globalSettings.SelfHosted)
|
||||||
|
@ -43,6 +43,15 @@ namespace Bit.Sso
|
|||||||
// Context
|
// Context
|
||||||
services.AddScoped<ICurrentContext, CurrentContext>();
|
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;
|
||||||
|
});
|
||||||
|
|
||||||
// Mvc
|
// Mvc
|
||||||
services.AddControllersWithViews();
|
services.AddControllersWithViews();
|
||||||
|
|
||||||
|
@ -49,6 +49,15 @@ namespace Bit.Billing
|
|||||||
// Context
|
// Context
|
||||||
services.AddScoped<ICurrentContext, CurrentContext>();
|
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
|
// Identity
|
||||||
services.AddCustomIdentityServices(globalSettings);
|
services.AddCustomIdentityServices(globalSettings);
|
||||||
//services.AddPasswordlessIdentityServices<ReadOnlyDatabaseIdentityUserStore>(globalSettings);
|
//services.AddPasswordlessIdentityServices<ReadOnlyDatabaseIdentityUserStore>(globalSettings);
|
||||||
|
Loading…
Reference in New Issue
Block a user