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:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user