Removed YesAuthentication

This commit is contained in:
quentin 2024-07-15 13:24:59 -05:00
parent d8b98ac5cc
commit a07f5f5869
3 changed files with 0 additions and 48 deletions

View File

@ -1,6 +0,0 @@
namespace API.Authentication.Interfaces
{
public interface IYesAuthentication : IGenericAuthentication<object, object>
{
}
}

View File

@ -1,41 +0,0 @@
using API.Authentication.Interfaces;
using DAL.Models;
namespace API.Authentication
{
public class YesAuthentication : IYesAuthentication
{
private readonly ILogger<YesAuthentication> _logger;
public YesAuthentication(ILogger<YesAuthentication> logger)
{
_logger = logger;
_logger.Log(LogLevel.Warning, "Yes Authentication being used.");
}
public bool canGetAll(User user)
{
_logger.Log(LogLevel.Warning, "Yes Authentication being used.");
return true;
}
public bool canGet(object model, User user)
{
_logger.Log(LogLevel.Warning, "Yes Authentication being used.");
return true;
}
public bool canAdd(object item, User user)
{
_logger.Log(LogLevel.Warning, "Yes Authentication being used.");
return true;
}
public bool canUpdate(object model, User user)
{
_logger.Log(LogLevel.Warning, "Yes Authentication being used.");
return true;
}
public bool canDelete(object model, User user)
{
_logger.Log(LogLevel.Warning, "Yes Authentication being used.");
return true;
}
}
}

View File

@ -53,7 +53,6 @@ namespace API
return new UserService(logger, context, authentication, permissionService, defaultUserPermission);
});
builder.Services.AddTransient<IYesAuthentication, YesAuthentication>();
builder.Services.AddTransient<IColorAuthentication, ColorAuthentication>();
builder.Services.AddTransient<IEventAuthentication, EventAuthentication>();
builder.Services.AddTransient<IGrantAuthentication, GrantAuthentication>();