mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 15:42:48 -05:00
license verification services for user/org
This commit is contained in:
@ -107,6 +107,15 @@ namespace Bit.Core.Utilities
|
||||
{
|
||||
services.AddSingleton<IAttachmentStorageService, NoopAttachmentStorageService>();
|
||||
}
|
||||
|
||||
if(globalSettings.SelfHosted)
|
||||
{
|
||||
services.AddSingleton<ILicenseVerificationService, RsaLicenseVerificationService>();
|
||||
}
|
||||
else
|
||||
{
|
||||
services.AddSingleton<ILicenseVerificationService, NoopLicenseVerificationService>();
|
||||
}
|
||||
}
|
||||
|
||||
public static void AddNoopServices(this IServiceCollection services)
|
||||
@ -117,6 +126,7 @@ namespace Bit.Core.Utilities
|
||||
services.AddSingleton<IBlockIpService, NoopBlockIpService>();
|
||||
services.AddSingleton<IPushRegistrationService, NoopPushRegistrationService>();
|
||||
services.AddSingleton<IAttachmentStorageService, NoopAttachmentStorageService>();
|
||||
services.AddSingleton<ILicenseVerificationService, NoopLicenseVerificationService>();
|
||||
}
|
||||
|
||||
public static IdentityBuilder AddCustomIdentityServices(
|
||||
|
Reference in New Issue
Block a user