1
0
mirror of https://github.com/bitwarden/server synced 2026-01-09 03:53:42 +00:00

chore(flag-removal): [Auth/PM20439] Remove Flagging Logic for BrowserExtensionLoginApproval (#6368)

This commit is contained in:
rr-bw
2025-09-29 13:29:18 -07:00
committed by GitHub
parent f6b99a7906
commit 8784907736
2 changed files with 8 additions and 26 deletions

View File

@@ -1,6 +1,4 @@
using Bit.Core;
using Bit.Core.Enums;
using Bit.Core.Services;
using Bit.Core.Enums;
namespace Bit.Identity.Utilities;
@@ -11,28 +9,15 @@ public interface ILoginApprovingClientTypes
public class LoginApprovingClientTypes : ILoginApprovingClientTypes
{
public LoginApprovingClientTypes(
IFeatureService featureService)
public LoginApprovingClientTypes()
{
if (featureService.IsEnabled(FeatureFlagKeys.BrowserExtensionLoginApproval))
TypesThatCanApprove = new List<ClientType>
{
TypesThatCanApprove = new List<ClientType>
{
ClientType.Desktop,
ClientType.Mobile,
ClientType.Web,
ClientType.Browser,
};
}
else
{
TypesThatCanApprove = new List<ClientType>
{
ClientType.Desktop,
ClientType.Mobile,
ClientType.Web,
};
}
ClientType.Desktop,
ClientType.Mobile,
ClientType.Web,
ClientType.Browser,
};
}
public IReadOnlyCollection<ClientType> TypesThatCanApprove { get; }