mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 05:28:15 -05:00
Removed IPhishingDomainService
This commit is contained in:
parent
bde722b604
commit
46b732e2b6
@ -177,7 +177,6 @@ public class Startup
|
||||
services.AddBillingOperations();
|
||||
services.AddReportingServices();
|
||||
services.AddImportServices();
|
||||
services.AddPhishingDomainService();
|
||||
|
||||
// Authorization Handlers
|
||||
services.AddAuthorizationHandlers();
|
||||
|
@ -2,7 +2,6 @@
|
||||
using Bit.Api.Vault.AuthorizationHandlers.Collections;
|
||||
using Bit.Core.AdminConsole.OrganizationFeatures.Groups.Authorization;
|
||||
using Bit.Core.IdentityServer;
|
||||
using Bit.Core.Services;
|
||||
using Bit.Core.Settings;
|
||||
using Bit.Core.Utilities;
|
||||
using Bit.Core.Vault.Authorization.SecurityTasks;
|
||||
@ -107,9 +106,4 @@ public static class ServiceCollectionExtensions
|
||||
services.AddScoped<IAuthorizationHandler, SecurityTaskAuthorizationHandler>();
|
||||
services.AddScoped<IAuthorizationHandler, SecurityTaskOrganizationAuthorizationHandler>();
|
||||
}
|
||||
|
||||
public static void AddPhishingDomainService(this IServiceCollection services)
|
||||
{
|
||||
services.AddSingleton<IPhishingDomainService, PhishingDomainService>();
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +0,0 @@
|
||||
namespace Bit.Core.Services;
|
||||
|
||||
public interface IPhishingDomainService
|
||||
{
|
||||
Task<IEnumerable<string>> GetPhishingDomainsAsync();
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
using System.Collections.Concurrent;
|
||||
|
||||
namespace Bit.Core.Services;
|
||||
|
||||
public class PhishingDomainService : IPhishingDomainService
|
||||
{
|
||||
private readonly ConcurrentDictionary<string, byte> _phishingDomains = new();
|
||||
|
||||
public Task<IEnumerable<string>> GetPhishingDomainsAsync()
|
||||
{
|
||||
return Task.FromResult(_phishingDomains.Keys.AsEnumerable());
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user