Removed YesAuthentication
This commit is contained in:
parent
d8b98ac5cc
commit
a07f5f5869
@ -1,6 +0,0 @@
|
|||||||
namespace API.Authentication.Interfaces
|
|
||||||
{
|
|
||||||
public interface IYesAuthentication : IGenericAuthentication<object, object>
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -53,7 +53,6 @@ namespace API
|
|||||||
return new UserService(logger, context, authentication, permissionService, defaultUserPermission);
|
return new UserService(logger, context, authentication, permissionService, defaultUserPermission);
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Services.AddTransient<IYesAuthentication, YesAuthentication>();
|
|
||||||
builder.Services.AddTransient<IColorAuthentication, ColorAuthentication>();
|
builder.Services.AddTransient<IColorAuthentication, ColorAuthentication>();
|
||||||
builder.Services.AddTransient<IEventAuthentication, EventAuthentication>();
|
builder.Services.AddTransient<IEventAuthentication, EventAuthentication>();
|
||||||
builder.Services.AddTransient<IGrantAuthentication, GrantAuthentication>();
|
builder.Services.AddTransient<IGrantAuthentication, GrantAuthentication>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user