1
0
mirror of https://github.com/bitwarden/server synced 2025-12-30 07:03:42 +00:00

Add PremiumAccessQueries to UserServiceCollectionExtensions

This commit is contained in:
Rui Tome
2025-12-04 17:17:44 +00:00
parent 683a6cb1ee
commit 08e14134bb

View File

@@ -1,5 +1,6 @@
using Bit.Core.Auth.Sso;
using Bit.Core.Auth.UserFeatures.DeviceTrust;
using Bit.Core.Auth.UserFeatures.PremiumAccess;
using Bit.Core.Auth.UserFeatures.Registration;
using Bit.Core.Auth.UserFeatures.Registration.Implementations;
using Bit.Core.Auth.UserFeatures.TdeOffboardingPassword.Interfaces;
@@ -27,6 +28,7 @@ public static class UserServiceCollectionExtensions
services.AddUserRegistrationCommands();
services.AddWebAuthnLoginCommands();
services.AddTdeOffboardingPasswordCommands();
services.AddPremiumAccessQueries();
services.AddTwoFactorQueries();
services.AddSsoQueries();
}
@@ -65,6 +67,11 @@ public static class UserServiceCollectionExtensions
services.AddScoped<IAssertWebAuthnLoginCredentialCommand, AssertWebAuthnLoginCredentialCommand>();
}
private static void AddPremiumAccessQueries(this IServiceCollection services)
{
services.AddScoped<IPremiumAccessQuery, PremiumAccessQuery>();
}
private static void AddTwoFactorQueries(this IServiceCollection services)
{
services.AddScoped<ITwoFactorIsEnabledQuery, TwoFactorIsEnabledQuery>();