From a07f5f586933ed97aaab193929eee27a649206e1 Mon Sep 17 00:00:00 2001 From: quentin Date: Mon, 15 Jul 2024 13:24:59 -0500 Subject: [PATCH] Removed YesAuthentication --- .../Interfaces/IYesAuthentication.cs | 6 --- API/Authentication/YesAuthentication.cs | 41 ------------------- API/Program.cs | 1 - 3 files changed, 48 deletions(-) delete mode 100644 API/Authentication/Interfaces/IYesAuthentication.cs delete mode 100644 API/Authentication/YesAuthentication.cs diff --git a/API/Authentication/Interfaces/IYesAuthentication.cs b/API/Authentication/Interfaces/IYesAuthentication.cs deleted file mode 100644 index 091a378..0000000 --- a/API/Authentication/Interfaces/IYesAuthentication.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace API.Authentication.Interfaces -{ - public interface IYesAuthentication : IGenericAuthentication - { - } -} diff --git a/API/Authentication/YesAuthentication.cs b/API/Authentication/YesAuthentication.cs deleted file mode 100644 index ad85393..0000000 --- a/API/Authentication/YesAuthentication.cs +++ /dev/null @@ -1,41 +0,0 @@ -using API.Authentication.Interfaces; -using DAL.Models; - -namespace API.Authentication -{ - public class YesAuthentication : IYesAuthentication - { - private readonly ILogger _logger; - public YesAuthentication(ILogger 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; - } - } -} diff --git a/API/Program.cs b/API/Program.cs index b5c4924..d0754c6 100644 --- a/API/Program.cs +++ b/API/Program.cs @@ -53,7 +53,6 @@ namespace API return new UserService(logger, context, authentication, permissionService, defaultUserPermission); }); - builder.Services.AddTransient(); builder.Services.AddTransient(); builder.Services.AddTransient(); builder.Services.AddTransient();