mirror of
https://github.com/bitwarden/server.git
synced 2025-04-09 07:08:15 -05:00

* Add new RegenerateUserAsymmetricKeysCommand * add new command tests * Add regen controller * Add regen controller tests * add feature flag * Add push notification to sync new asymmetric keys to other devices
19 lines
581 B
C#
19 lines
581 B
C#
using Bit.Core.KeyManagement.Commands;
|
|
using Bit.Core.KeyManagement.Commands.Interfaces;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Bit.Core.KeyManagement;
|
|
|
|
public static class KeyManagementServiceCollectionExtensions
|
|
{
|
|
public static void AddKeyManagementServices(this IServiceCollection services)
|
|
{
|
|
services.AddKeyManagementCommands();
|
|
}
|
|
|
|
private static void AddKeyManagementCommands(this IServiceCollection services)
|
|
{
|
|
services.AddScoped<IRegenerateUserAsymmetricKeysCommand, RegenerateUserAsymmetricKeysCommand>();
|
|
}
|
|
}
|