diff --git a/Core.Cerberos.Service.API/Cerberos.Service.API.http b/Core.Cerberos.Service.API/Cerberos.Service.API.http
deleted file mode 100644
index ec0c9c4..0000000
--- a/Core.Cerberos.Service.API/Cerberos.Service.API.http
+++ /dev/null
@@ -1,6 +0,0 @@
-@Core.Cerberos.Service.API_HostAddress = http://localhost:5145
-
-GET {{Core.Cerberos.Service.API_HostAddress}}/weatherforecast/
-Accept: application/json
-
-###
diff --git a/Core.Cerberos.Application/Core.Cerberos.Application.csproj b/Core.Thalos.Application/Core.Thalos.Application.csproj
similarity index 81%
rename from Core.Cerberos.Application/Core.Cerberos.Application.csproj
rename to Core.Thalos.Application/Core.Thalos.Application.csproj
index 19d9b2f..4848697 100644
--- a/Core.Cerberos.Application/Core.Cerberos.Application.csproj
+++ b/Core.Thalos.Application/Core.Thalos.Application.csproj
@@ -11,7 +11,7 @@
-
+
diff --git a/Core.Cerberos.Application/UseCases/Modules/Adapter/ModulePort.cs b/Core.Thalos.Application/UseCases/Modules/Adapter/ModulePort.cs
similarity index 72%
rename from Core.Cerberos.Application/UseCases/Modules/Adapter/ModulePort.cs
rename to Core.Thalos.Application/UseCases/Modules/Adapter/ModulePort.cs
index f178d8d..4e39b5d 100644
--- a/Core.Cerberos.Application/UseCases/Modules/Adapter/ModulePort.cs
+++ b/Core.Thalos.Application/UseCases/Modules/Adapter/ModulePort.cs
@@ -1,9 +1,9 @@
-using Core.Cerberos.Adapters;
-using Core.Cerberos.Application.UseCases.Modules.Ports;
+using Core.Thalos.Adapters;
+using Core.Thalos.Application.UseCases.Modules.Ports;
using Lib.Architecture.BuildingBlocks;
using Microsoft.AspNetCore.Mvc;
-namespace Core.Cerberos.Application.UseCases.Modules.Adapter
+namespace Core.Thalos.Application.UseCases.Modules.Adapter
{
public class ModulePort : BasePresenter, IModulePort
{
diff --git a/Core.Cerberos.Application/UseCases/Modules/Input/ChangeModuleStatusRequest.cs b/Core.Thalos.Application/UseCases/Modules/Input/ChangeModuleStatusRequest.cs
similarity index 73%
rename from Core.Cerberos.Application/UseCases/Modules/Input/ChangeModuleStatusRequest.cs
rename to Core.Thalos.Application/UseCases/Modules/Input/ChangeModuleStatusRequest.cs
index fdd176d..9b11310 100644
--- a/Core.Cerberos.Application/UseCases/Modules/Input/ChangeModuleStatusRequest.cs
+++ b/Core.Thalos.Application/UseCases/Modules/Input/ChangeModuleStatusRequest.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Adapters.Common.Enums;
+using Core.Thalos.Adapters.Common.Enums;
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Modules.Input
+namespace Core.Thalos.Application.UseCases.Modules.Input
{
public class ChangeModuleStatusRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Modules/Input/CreateModuleRequest.cs b/Core.Thalos.Application/UseCases/Modules/Input/CreateModuleRequest.cs
similarity index 82%
rename from Core.Cerberos.Application/UseCases/Modules/Input/CreateModuleRequest.cs
rename to Core.Thalos.Application/UseCases/Modules/Input/CreateModuleRequest.cs
index 546d8e2..d9387c5 100644
--- a/Core.Cerberos.Application/UseCases/Modules/Input/CreateModuleRequest.cs
+++ b/Core.Thalos.Application/UseCases/Modules/Input/CreateModuleRequest.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Adapters.Common.Enums;
+using Core.Thalos.Adapters.Common.Enums;
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Modules.Input
+namespace Core.Thalos.Application.UseCases.Modules.Input
{
public class CreateModuleRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Modules/Input/GetAllModulesByListRequest.cs b/Core.Thalos.Application/UseCases/Modules/Input/GetAllModulesByListRequest.cs
similarity index 81%
rename from Core.Cerberos.Application/UseCases/Modules/Input/GetAllModulesByListRequest.cs
rename to Core.Thalos.Application/UseCases/Modules/Input/GetAllModulesByListRequest.cs
index 849ca56..af04869 100644
--- a/Core.Cerberos.Application/UseCases/Modules/Input/GetAllModulesByListRequest.cs
+++ b/Core.Thalos.Application/UseCases/Modules/Input/GetAllModulesByListRequest.cs
@@ -1,6 +1,6 @@
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Modules.Input
+namespace Core.Thalos.Application.UseCases.Modules.Input
{
public class GetAllModulesByListRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Modules/Input/GetAllModulesRequest.cs b/Core.Thalos.Application/UseCases/Modules/Input/GetAllModulesRequest.cs
similarity index 75%
rename from Core.Cerberos.Application/UseCases/Modules/Input/GetAllModulesRequest.cs
rename to Core.Thalos.Application/UseCases/Modules/Input/GetAllModulesRequest.cs
index cb56ec3..33d6f1a 100644
--- a/Core.Cerberos.Application/UseCases/Modules/Input/GetAllModulesRequest.cs
+++ b/Core.Thalos.Application/UseCases/Modules/Input/GetAllModulesRequest.cs
@@ -1,6 +1,6 @@
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Modules.Input
+namespace Core.Thalos.Application.UseCases.Modules.Input
{
public class GetAllModulesRequest : ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Modules/Input/GetModuleRequest.cs b/Core.Thalos.Application/UseCases/Modules/Input/GetModuleRequest.cs
similarity index 80%
rename from Core.Cerberos.Application/UseCases/Modules/Input/GetModuleRequest.cs
rename to Core.Thalos.Application/UseCases/Modules/Input/GetModuleRequest.cs
index 7547375..46428fa 100644
--- a/Core.Cerberos.Application/UseCases/Modules/Input/GetModuleRequest.cs
+++ b/Core.Thalos.Application/UseCases/Modules/Input/GetModuleRequest.cs
@@ -1,6 +1,6 @@
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Modules.Input
+namespace Core.Thalos.Application.UseCases.Modules.Input
{
public class GetModuleRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Modules/Input/UpdateModuleRequest.cs b/Core.Thalos.Application/UseCases/Modules/Input/UpdateModuleRequest.cs
similarity index 84%
rename from Core.Cerberos.Application/UseCases/Modules/Input/UpdateModuleRequest.cs
rename to Core.Thalos.Application/UseCases/Modules/Input/UpdateModuleRequest.cs
index ff2c676..f807044 100644
--- a/Core.Cerberos.Application/UseCases/Modules/Input/UpdateModuleRequest.cs
+++ b/Core.Thalos.Application/UseCases/Modules/Input/UpdateModuleRequest.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Adapters.Common.Enums;
+using Core.Thalos.Adapters.Common.Enums;
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Modules.Input
+namespace Core.Thalos.Application.UseCases.Modules.Input
{
public class UpdateModuleRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Modules/ModuleHandler.cs b/Core.Thalos.Application/UseCases/Modules/ModuleHandler.cs
similarity index 84%
rename from Core.Cerberos.Application/UseCases/Modules/ModuleHandler.cs
rename to Core.Thalos.Application/UseCases/Modules/ModuleHandler.cs
index 7703e4a..c2f540d 100644
--- a/Core.Cerberos.Application/UseCases/Modules/ModuleHandler.cs
+++ b/Core.Thalos.Application/UseCases/Modules/ModuleHandler.cs
@@ -1,13 +1,13 @@
-using Core.Cerberos.Adapters;
-using Core.Cerberos.Application.UseCases.Modules.Input;
-using Core.Cerberos.Application.UseCases.Modules.Ports;
-using Core.Cerberos.External.Clients;
-using Core.Cerberos.External.Clients.Requests;
+using Core.Thalos.Adapters;
+using Core.Thalos.Application.UseCases.Modules.Input;
+using Core.Thalos.Application.UseCases.Modules.Ports;
+using Core.Thalos.External.Clients;
+using Core.Thalos.External.Clients.Requests;
using FluentValidation;
using Lib.Architecture.BuildingBlocks;
using Lib.Architecture.BuildingBlocks.Helpers;
-namespace Core.Cerberos.Application.UseCases.Modules
+namespace Core.Thalos.Application.UseCases.Modules
{
public class ModuleHandler :
IComponentHandler,
@@ -22,7 +22,7 @@ namespace Core.Cerberos.Application.UseCases.Modules
private readonly IValidator _registerModuleValidator;
private readonly IValidator _updateModuleValidator;
private readonly IValidator _modulesByListValidator;
- private readonly ICerberosServiceClient _cerberosDALService;
+ private readonly IThalosServiceClient _thalosDALService;
public ModuleHandler(
IModulePort port,
@@ -30,13 +30,13 @@ namespace Core.Cerberos.Application.UseCases.Modules
IValidator registerModuleValidator,
IValidator updateModuleValidator,
IValidator modulesByListValidator,
- ICerberosServiceClient cerberosDALService)
+ IThalosServiceClient thalosDALService)
{
_port = port ?? throw new ArgumentNullException(nameof(port));
_changeModuleStatusValidator = changeModuleStatusValidator ?? throw new ArgumentNullException(nameof(changeModuleStatusValidator));
_registerModuleValidator = registerModuleValidator ?? throw new ArgumentNullException(nameof(registerModuleValidator));
_updateModuleValidator = updateModuleValidator ?? throw new ArgumentNullException(nameof(updateModuleValidator));
- _cerberosDALService = cerberosDALService ?? throw new ArgumentNullException(nameof(cerberosDALService));
+ _thalosDALService = thalosDALService ?? throw new ArgumentNullException(nameof(thalosDALService));
_modulesByListValidator = modulesByListValidator ?? throw new ArgumentNullException(nameof(modulesByListValidator));
}
@@ -46,7 +46,7 @@ namespace Core.Cerberos.Application.UseCases.Modules
{
ArgumentNullException.ThrowIfNull(command);
- var result = await _cerberosDALService.GetModuleByIdAsync(command.Id, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.GetModuleByIdAsync(command.Id, cancellationToken).ConfigureAwait(false);
if (result == null)
{
@@ -68,7 +68,7 @@ namespace Core.Cerberos.Application.UseCases.Modules
{
ArgumentNullException.ThrowIfNull(command);
- var _result = await _cerberosDALService.GetAllModulesAsync().ConfigureAwait(false);
+ var _result = await _thalosDALService.GetAllModulesAsync().ConfigureAwait(false);
if (!_result.Any())
{
_port.NoContentSuccess();
@@ -94,7 +94,7 @@ namespace Core.Cerberos.Application.UseCases.Modules
return;
}
- var _result = await _cerberosDALService.GetAllModulesByListAsync(command.Modules, cancellationToken).ConfigureAwait(false);
+ var _result = await _thalosDALService.GetAllModulesByListAsync(command.Modules, cancellationToken).ConfigureAwait(false);
if (!_result.Any())
{
_port.NoContentSuccess();
@@ -120,7 +120,7 @@ namespace Core.Cerberos.Application.UseCases.Modules
return;
}
- var result = await _cerberosDALService.ChangeStatusModuleAsync(command.Id, command.Status, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.ChangeStatusModuleAsync(command.Id, command.Status, cancellationToken).ConfigureAwait(false);
if (result == null)
{
@@ -158,7 +158,7 @@ namespace Core.Cerberos.Application.UseCases.Modules
Application = command.Application,
};
- var result = await _cerberosDALService.CreateModuleAsync(request, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.CreateModuleAsync(request, cancellationToken).ConfigureAwait(false);
if (result == null)
{
@@ -200,7 +200,7 @@ namespace Core.Cerberos.Application.UseCases.Modules
string id = command.Id;
- var result = await _cerberosDALService.UpdateModuleAsync(request, id, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.UpdateModuleAsync(request, id, cancellationToken).ConfigureAwait(false);
if (result == null)
{
diff --git a/Core.Cerberos.Application/UseCases/Modules/Ports/IModulePort.cs b/Core.Thalos.Application/UseCases/Modules/Ports/IModulePort.cs
similarity index 80%
rename from Core.Cerberos.Application/UseCases/Modules/Ports/IModulePort.cs
rename to Core.Thalos.Application/UseCases/Modules/Ports/IModulePort.cs
index 613c588..d876a8e 100644
--- a/Core.Cerberos.Application/UseCases/Modules/Ports/IModulePort.cs
+++ b/Core.Thalos.Application/UseCases/Modules/Ports/IModulePort.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Adapters;
+using Core.Thalos.Adapters;
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Modules.Ports
+namespace Core.Thalos.Application.UseCases.Modules.Ports
{
public interface IModulePort : IBasePort,
ICommandSuccessPort,
diff --git a/Core.Cerberos.Application/UseCases/Modules/Validator/ChangeModuleStatusValidator.cs b/Core.Thalos.Application/UseCases/Modules/Validator/ChangeModuleStatusValidator.cs
similarity index 79%
rename from Core.Cerberos.Application/UseCases/Modules/Validator/ChangeModuleStatusValidator.cs
rename to Core.Thalos.Application/UseCases/Modules/Validator/ChangeModuleStatusValidator.cs
index 63009b6..d56a632 100644
--- a/Core.Cerberos.Application/UseCases/Modules/Validator/ChangeModuleStatusValidator.cs
+++ b/Core.Thalos.Application/UseCases/Modules/Validator/ChangeModuleStatusValidator.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Application.UseCases.Modules.Input;
+using Core.Thalos.Application.UseCases.Modules.Input;
using FluentValidation;
-namespace Core.Cerberos.Application.UseCases.Modules.Validator
+namespace Core.Thalos.Application.UseCases.Modules.Validator
{
public class ChangeModuleStatusValidator : AbstractValidator
{
diff --git a/Core.Cerberos.Application/UseCases/Modules/Validator/CreateModuleValidator.cs b/Core.Thalos.Application/UseCases/Modules/Validator/CreateModuleValidator.cs
similarity index 84%
rename from Core.Cerberos.Application/UseCases/Modules/Validator/CreateModuleValidator.cs
rename to Core.Thalos.Application/UseCases/Modules/Validator/CreateModuleValidator.cs
index ca2f49d..862cd43 100644
--- a/Core.Cerberos.Application/UseCases/Modules/Validator/CreateModuleValidator.cs
+++ b/Core.Thalos.Application/UseCases/Modules/Validator/CreateModuleValidator.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Application.UseCases.Modules.Input;
+using Core.Thalos.Application.UseCases.Modules.Input;
using FluentValidation;
-namespace Core.Cerberos.Application.UseCases.Modules.Validator
+namespace Core.Thalos.Application.UseCases.Modules.Validator
{
public class CreateModuleValidator : AbstractValidator
{
diff --git a/Core.Cerberos.Application/UseCases/Modules/Validator/GetAllModulesByListValidator.cs b/Core.Thalos.Application/UseCases/Modules/Validator/GetAllModulesByListValidator.cs
similarity index 74%
rename from Core.Cerberos.Application/UseCases/Modules/Validator/GetAllModulesByListValidator.cs
rename to Core.Thalos.Application/UseCases/Modules/Validator/GetAllModulesByListValidator.cs
index 9b85fe1..a077e58 100644
--- a/Core.Cerberos.Application/UseCases/Modules/Validator/GetAllModulesByListValidator.cs
+++ b/Core.Thalos.Application/UseCases/Modules/Validator/GetAllModulesByListValidator.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Application.UseCases.Modules.Input;
+using Core.Thalos.Application.UseCases.Modules.Input;
using FluentValidation;
-namespace Core.Cerberos.Application.UseCases.Modules.Validator
+namespace Core.Thalos.Application.UseCases.Modules.Validator
{
public class GetAllModulesByListValidator : AbstractValidator
{
diff --git a/Core.Cerberos.Application/UseCases/Modules/Validator/UpdateModuleValidator.cs b/Core.Thalos.Application/UseCases/Modules/Validator/UpdateModuleValidator.cs
similarity index 84%
rename from Core.Cerberos.Application/UseCases/Modules/Validator/UpdateModuleValidator.cs
rename to Core.Thalos.Application/UseCases/Modules/Validator/UpdateModuleValidator.cs
index 325c0d2..72846f5 100644
--- a/Core.Cerberos.Application/UseCases/Modules/Validator/UpdateModuleValidator.cs
+++ b/Core.Thalos.Application/UseCases/Modules/Validator/UpdateModuleValidator.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Application.UseCases.Modules.Input;
+using Core.Thalos.Application.UseCases.Modules.Input;
using FluentValidation;
-namespace Core.Cerberos.Application.UseCases.Modules.Validator
+namespace Core.Thalos.Application.UseCases.Modules.Validator
{
public class UpdateModuleValidator : AbstractValidator
{
diff --git a/Core.Cerberos.Application/UseCases/Permissions/Adapter/PermissionPort.cs b/Core.Thalos.Application/UseCases/Permissions/Adapter/PermissionPort.cs
similarity index 72%
rename from Core.Cerberos.Application/UseCases/Permissions/Adapter/PermissionPort.cs
rename to Core.Thalos.Application/UseCases/Permissions/Adapter/PermissionPort.cs
index 02eece0..ae9e285 100644
--- a/Core.Cerberos.Application/UseCases/Permissions/Adapter/PermissionPort.cs
+++ b/Core.Thalos.Application/UseCases/Permissions/Adapter/PermissionPort.cs
@@ -1,9 +1,9 @@
-using Core.Cerberos.Adapters;
-using Core.Cerberos.Application.UseCases.Permissions.Ports;
+using Core.Thalos.Adapters;
+using Core.Thalos.Application.UseCases.Permissions.Ports;
using Lib.Architecture.BuildingBlocks;
using Microsoft.AspNetCore.Mvc;
-namespace Core.Cerberos.Application.UseCases.Permissions.Adapter
+namespace Core.Thalos.Application.UseCases.Permissions.Adapter
{
public class PermissionPort : BasePresenter, IPermissionPort
{
diff --git a/Core.Cerberos.Application/UseCases/Permissions/Input/ChangePermissionStatusRequest.cs b/Core.Thalos.Application/UseCases/Permissions/Input/ChangePermissionStatusRequest.cs
similarity index 73%
rename from Core.Cerberos.Application/UseCases/Permissions/Input/ChangePermissionStatusRequest.cs
rename to Core.Thalos.Application/UseCases/Permissions/Input/ChangePermissionStatusRequest.cs
index 50cecf4..5a51cc2 100644
--- a/Core.Cerberos.Application/UseCases/Permissions/Input/ChangePermissionStatusRequest.cs
+++ b/Core.Thalos.Application/UseCases/Permissions/Input/ChangePermissionStatusRequest.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Adapters.Common.Enums;
+using Core.Thalos.Adapters.Common.Enums;
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Permissions.Input
+namespace Core.Thalos.Application.UseCases.Permissions.Input
{
public class ChangePermissionStatusRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Permissions/Input/CreatePermissionRequest.cs b/Core.Thalos.Application/UseCases/Permissions/Input/CreatePermissionRequest.cs
similarity index 77%
rename from Core.Cerberos.Application/UseCases/Permissions/Input/CreatePermissionRequest.cs
rename to Core.Thalos.Application/UseCases/Permissions/Input/CreatePermissionRequest.cs
index a50103a..1a8ab9d 100644
--- a/Core.Cerberos.Application/UseCases/Permissions/Input/CreatePermissionRequest.cs
+++ b/Core.Thalos.Application/UseCases/Permissions/Input/CreatePermissionRequest.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Adapters.Common.Constants;
+using Core.Thalos.Adapters.Common.Constants;
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Permissions.Input
+namespace Core.Thalos.Application.UseCases.Permissions.Input
{
public class CreatePermissionRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Permissions/Input/GetAllPermissionsByListRequest.cs b/Core.Thalos.Application/UseCases/Permissions/Input/GetAllPermissionsByListRequest.cs
similarity index 80%
rename from Core.Cerberos.Application/UseCases/Permissions/Input/GetAllPermissionsByListRequest.cs
rename to Core.Thalos.Application/UseCases/Permissions/Input/GetAllPermissionsByListRequest.cs
index e730af6..9180940 100644
--- a/Core.Cerberos.Application/UseCases/Permissions/Input/GetAllPermissionsByListRequest.cs
+++ b/Core.Thalos.Application/UseCases/Permissions/Input/GetAllPermissionsByListRequest.cs
@@ -1,6 +1,6 @@
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Permissions.Input
+namespace Core.Thalos.Application.UseCases.Permissions.Input
{
public class GetAllPermissionsByListRequest : ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Permissions/Input/GetAllPermissionsRequest.cs b/Core.Thalos.Application/UseCases/Permissions/Input/GetAllPermissionsRequest.cs
similarity index 74%
rename from Core.Cerberos.Application/UseCases/Permissions/Input/GetAllPermissionsRequest.cs
rename to Core.Thalos.Application/UseCases/Permissions/Input/GetAllPermissionsRequest.cs
index 6ba5b74..a182222 100644
--- a/Core.Cerberos.Application/UseCases/Permissions/Input/GetAllPermissionsRequest.cs
+++ b/Core.Thalos.Application/UseCases/Permissions/Input/GetAllPermissionsRequest.cs
@@ -1,6 +1,6 @@
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Permissions.Input
+namespace Core.Thalos.Application.UseCases.Permissions.Input
{
public class GetAllPermissionsRequest : ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Permissions/Input/GetPermissionRequest.cs b/Core.Thalos.Application/UseCases/Permissions/Input/GetPermissionRequest.cs
similarity index 79%
rename from Core.Cerberos.Application/UseCases/Permissions/Input/GetPermissionRequest.cs
rename to Core.Thalos.Application/UseCases/Permissions/Input/GetPermissionRequest.cs
index d95b10e..b92bf62 100644
--- a/Core.Cerberos.Application/UseCases/Permissions/Input/GetPermissionRequest.cs
+++ b/Core.Thalos.Application/UseCases/Permissions/Input/GetPermissionRequest.cs
@@ -1,6 +1,6 @@
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Permissions.Input
+namespace Core.Thalos.Application.UseCases.Permissions.Input
{
public class GetPermissionRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Permissions/Input/UpdatePermissionRequest.cs b/Core.Thalos.Application/UseCases/Permissions/Input/UpdatePermissionRequest.cs
similarity index 74%
rename from Core.Cerberos.Application/UseCases/Permissions/Input/UpdatePermissionRequest.cs
rename to Core.Thalos.Application/UseCases/Permissions/Input/UpdatePermissionRequest.cs
index 987a27a..f74535a 100644
--- a/Core.Cerberos.Application/UseCases/Permissions/Input/UpdatePermissionRequest.cs
+++ b/Core.Thalos.Application/UseCases/Permissions/Input/UpdatePermissionRequest.cs
@@ -1,8 +1,8 @@
-using Core.Cerberos.Adapters.Common.Constants;
-using Core.Cerberos.Adapters.Common.Enums;
+using Core.Thalos.Adapters.Common.Constants;
+using Core.Thalos.Adapters.Common.Enums;
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Permissions.Input
+namespace Core.Thalos.Application.UseCases.Permissions.Input
{
public class UpdatePermissionRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Permissions/PermissionHandler.cs b/Core.Thalos.Application/UseCases/Permissions/PermissionHandler.cs
similarity index 82%
rename from Core.Cerberos.Application/UseCases/Permissions/PermissionHandler.cs
rename to Core.Thalos.Application/UseCases/Permissions/PermissionHandler.cs
index 9fd7c07..2ac2aa4 100644
--- a/Core.Cerberos.Application/UseCases/Permissions/PermissionHandler.cs
+++ b/Core.Thalos.Application/UseCases/Permissions/PermissionHandler.cs
@@ -1,13 +1,13 @@
-using Core.Cerberos.Adapters;
-using Core.Cerberos.Application.UseCases.Permissions.Input;
-using Core.Cerberos.Application.UseCases.Permissions.Ports;
-using Core.Cerberos.External.Clients;
-using Core.Cerberos.External.Clients.Requests;
+using Core.Thalos.Adapters;
+using Core.Thalos.Application.UseCases.Permissions.Input;
+using Core.Thalos.Application.UseCases.Permissions.Ports;
+using Core.Thalos.External.Clients;
+using Core.Thalos.External.Clients.Requests;
using FluentValidation;
using Lib.Architecture.BuildingBlocks;
using Lib.Architecture.BuildingBlocks.Helpers;
-namespace Core.Cerberos.Application.UseCases.Permissions
+namespace Core.Thalos.Application.UseCases.Permissions
{
public class PermissionHandler :
IComponentHandler,
@@ -21,20 +21,20 @@ namespace Core.Cerberos.Application.UseCases.Permissions
private readonly IValidator _changePermissionStatusValidator;
private readonly IValidator _registerPermissionValidator;
private readonly IValidator _updatePermissionValidator;
- private readonly ICerberosServiceClient _cerberosDALService;
+ private readonly IThalosServiceClient _thalosDALService;
public PermissionHandler(
IPermissionPort port,
IValidator changePermissionStatusValidator,
IValidator registerPermissionValidator,
IValidator updatePermissionValidator,
- ICerberosServiceClient cerberosDALService)
+ IThalosServiceClient thalosDALService)
{
_port = port ?? throw new ArgumentNullException(nameof(port));
_changePermissionStatusValidator = changePermissionStatusValidator ?? throw new ArgumentNullException(nameof(changePermissionStatusValidator));
_registerPermissionValidator = registerPermissionValidator ?? throw new ArgumentNullException(nameof(registerPermissionValidator));
_updatePermissionValidator = updatePermissionValidator ?? throw new ArgumentNullException(nameof(updatePermissionValidator));
- _cerberosDALService = cerberosDALService ?? throw new ArgumentNullException(nameof(cerberosDALService));
+ _thalosDALService = thalosDALService ?? throw new ArgumentNullException(nameof(thalosDALService));
}
public async ValueTask ExecuteAsync(GetPermissionRequest command, CancellationToken cancellationToken = default)
@@ -43,7 +43,7 @@ namespace Core.Cerberos.Application.UseCases.Permissions
{
ArgumentNullException.ThrowIfNull(command);
- var result = await _cerberosDALService.GetPermissionByIdAsync(command.Id, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.GetPermissionByIdAsync(command.Id, cancellationToken).ConfigureAwait(false);
if (result == null)
{
@@ -65,7 +65,7 @@ namespace Core.Cerberos.Application.UseCases.Permissions
{
ArgumentNullException.ThrowIfNull(command);
- var _result = await _cerberosDALService.GetAllPermissionsAsync().ConfigureAwait(false);
+ var _result = await _thalosDALService.GetAllPermissionsAsync().ConfigureAwait(false);
if (!_result.Any())
{
_port.NoContentSuccess();
@@ -85,7 +85,7 @@ namespace Core.Cerberos.Application.UseCases.Permissions
{
ArgumentNullException.ThrowIfNull(command);
- var _result = await _cerberosDALService.GetAllPermissionsByListAsync(command.Permissions, cancellationToken).ConfigureAwait(false);
+ var _result = await _thalosDALService.GetAllPermissionsByListAsync(command.Permissions, cancellationToken).ConfigureAwait(false);
if (!_result.Any())
{
_port.NoContentSuccess();
@@ -111,7 +111,7 @@ namespace Core.Cerberos.Application.UseCases.Permissions
return;
}
- var result = await _cerberosDALService.ChangeStatusPermissionAsync(command.Id, command.Status, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.ChangeStatusPermissionAsync(command.Id, command.Status, cancellationToken).ConfigureAwait(false);
if (result == null)
{
@@ -146,7 +146,7 @@ namespace Core.Cerberos.Application.UseCases.Permissions
AccessLevel = command.AccessLevel
};
- var result = await _cerberosDALService.CreatePermissionAsync(request, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.CreatePermissionAsync(request, cancellationToken).ConfigureAwait(false);
if (result == null)
{
@@ -185,7 +185,7 @@ namespace Core.Cerberos.Application.UseCases.Permissions
string id = command.Id;
- var result = await _cerberosDALService.UpdatePermissionAsync(request, id, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.UpdatePermissionAsync(request, id, cancellationToken).ConfigureAwait(false);
if (result == null)
{
diff --git a/Core.Cerberos.Application/UseCases/Permissions/Ports/IPermissionPort.cs b/Core.Thalos.Application/UseCases/Permissions/Ports/IPermissionPort.cs
similarity index 80%
rename from Core.Cerberos.Application/UseCases/Permissions/Ports/IPermissionPort.cs
rename to Core.Thalos.Application/UseCases/Permissions/Ports/IPermissionPort.cs
index 7471da4..fb94f8a 100644
--- a/Core.Cerberos.Application/UseCases/Permissions/Ports/IPermissionPort.cs
+++ b/Core.Thalos.Application/UseCases/Permissions/Ports/IPermissionPort.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Adapters;
+using Core.Thalos.Adapters;
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Permissions.Ports
+namespace Core.Thalos.Application.UseCases.Permissions.Ports
{
public interface IPermissionPort : IBasePort,
ICommandSuccessPort,
diff --git a/Core.Cerberos.Application/UseCases/Permissions/Validator/ChangePermissionStatusValidator.cs b/Core.Thalos.Application/UseCases/Permissions/Validator/ChangePermissionStatusValidator.cs
similarity index 79%
rename from Core.Cerberos.Application/UseCases/Permissions/Validator/ChangePermissionStatusValidator.cs
rename to Core.Thalos.Application/UseCases/Permissions/Validator/ChangePermissionStatusValidator.cs
index a60b37b..0271893 100644
--- a/Core.Cerberos.Application/UseCases/Permissions/Validator/ChangePermissionStatusValidator.cs
+++ b/Core.Thalos.Application/UseCases/Permissions/Validator/ChangePermissionStatusValidator.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Application.UseCases.Permissions.Input;
+using Core.Thalos.Application.UseCases.Permissions.Input;
using FluentValidation;
-namespace Core.Cerberos.Application.UseCases.Permissions.Validator
+namespace Core.Thalos.Application.UseCases.Permissions.Validator
{
public class ChangePermissionStatusValidator : AbstractValidator
{
diff --git a/Core.Cerberos.Application/UseCases/Permissions/Validator/CreatePermissionValidator.cs b/Core.Thalos.Application/UseCases/Permissions/Validator/CreatePermissionValidator.cs
similarity index 84%
rename from Core.Cerberos.Application/UseCases/Permissions/Validator/CreatePermissionValidator.cs
rename to Core.Thalos.Application/UseCases/Permissions/Validator/CreatePermissionValidator.cs
index eba98c0..f541adf 100644
--- a/Core.Cerberos.Application/UseCases/Permissions/Validator/CreatePermissionValidator.cs
+++ b/Core.Thalos.Application/UseCases/Permissions/Validator/CreatePermissionValidator.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Application.UseCases.Permissions.Input;
+using Core.Thalos.Application.UseCases.Permissions.Input;
using FluentValidation;
-namespace Core.Cerberos.Application.UseCases.Permissions.Validator
+namespace Core.Thalos.Application.UseCases.Permissions.Validator
{
public class CreatePermissionValidator : AbstractValidator
{
diff --git a/Core.Cerberos.Application/UseCases/Permissions/Validator/UpdatePermissionValidator.cs b/Core.Thalos.Application/UseCases/Permissions/Validator/UpdatePermissionValidator.cs
similarity index 80%
rename from Core.Cerberos.Application/UseCases/Permissions/Validator/UpdatePermissionValidator.cs
rename to Core.Thalos.Application/UseCases/Permissions/Validator/UpdatePermissionValidator.cs
index d516e16..4351e55 100644
--- a/Core.Cerberos.Application/UseCases/Permissions/Validator/UpdatePermissionValidator.cs
+++ b/Core.Thalos.Application/UseCases/Permissions/Validator/UpdatePermissionValidator.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Application.UseCases.Permissions.Input;
+using Core.Thalos.Application.UseCases.Permissions.Input;
using FluentValidation;
-namespace Core.Cerberos.Application.UseCases.Permissions.Validator
+namespace Core.Thalos.Application.UseCases.Permissions.Validator
{
public class UpdatePermissionValidator : AbstractValidator
{
diff --git a/Core.Cerberos.Application/UseCases/Roles/Adapter/RolePort.cs b/Core.Thalos.Application/UseCases/Roles/Adapter/RolePort.cs
similarity index 72%
rename from Core.Cerberos.Application/UseCases/Roles/Adapter/RolePort.cs
rename to Core.Thalos.Application/UseCases/Roles/Adapter/RolePort.cs
index 5806076..9a650a6 100644
--- a/Core.Cerberos.Application/UseCases/Roles/Adapter/RolePort.cs
+++ b/Core.Thalos.Application/UseCases/Roles/Adapter/RolePort.cs
@@ -1,9 +1,9 @@
-using Core.Cerberos.Adapters;
-using Core.Cerberos.Application.UseCases.Roles.Ports;
+using Core.Thalos.Adapters;
+using Core.Thalos.Application.UseCases.Roles.Ports;
using Lib.Architecture.BuildingBlocks;
using Microsoft.AspNetCore.Mvc;
-namespace Core.Cerberos.Application.UseCases.Roles.Adapter
+namespace Core.Thalos.Application.UseCases.Roles.Adapter
{
public class RolePort : BasePresenter, IRolePort
{
diff --git a/Core.Cerberos.Application/UseCases/Roles/Input/AddApplicationToRoleRequest.cs b/Core.Thalos.Application/UseCases/Roles/Input/AddApplicationToRoleRequest.cs
similarity index 74%
rename from Core.Cerberos.Application/UseCases/Roles/Input/AddApplicationToRoleRequest.cs
rename to Core.Thalos.Application/UseCases/Roles/Input/AddApplicationToRoleRequest.cs
index 49c2bd0..220c3d6 100644
--- a/Core.Cerberos.Application/UseCases/Roles/Input/AddApplicationToRoleRequest.cs
+++ b/Core.Thalos.Application/UseCases/Roles/Input/AddApplicationToRoleRequest.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Adapters.Common.Enums;
+using Core.Thalos.Adapters.Common.Enums;
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Roles.Input
+namespace Core.Thalos.Application.UseCases.Roles.Input
{
public class AddApplicationToRoleRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Roles/Input/ChangeRoleStatusRequest.cs b/Core.Thalos.Application/UseCases/Roles/Input/ChangeRoleStatusRequest.cs
similarity index 73%
rename from Core.Cerberos.Application/UseCases/Roles/Input/ChangeRoleStatusRequest.cs
rename to Core.Thalos.Application/UseCases/Roles/Input/ChangeRoleStatusRequest.cs
index 7133d04..0dffdc6 100644
--- a/Core.Cerberos.Application/UseCases/Roles/Input/ChangeRoleStatusRequest.cs
+++ b/Core.Thalos.Application/UseCases/Roles/Input/ChangeRoleStatusRequest.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Adapters.Common.Enums;
+using Core.Thalos.Adapters.Common.Enums;
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Roles.Input
+namespace Core.Thalos.Application.UseCases.Roles.Input
{
public class ChangeRoleStatusRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Roles/Input/CreateRoleRequest.cs b/Core.Thalos.Application/UseCases/Roles/Input/CreateRoleRequest.cs
similarity index 85%
rename from Core.Cerberos.Application/UseCases/Roles/Input/CreateRoleRequest.cs
rename to Core.Thalos.Application/UseCases/Roles/Input/CreateRoleRequest.cs
index b0edcd7..73eac5d 100644
--- a/Core.Cerberos.Application/UseCases/Roles/Input/CreateRoleRequest.cs
+++ b/Core.Thalos.Application/UseCases/Roles/Input/CreateRoleRequest.cs
@@ -1,8 +1,8 @@
-using Core.Cerberos.Adapters.Common.Enums;
+using Core.Thalos.Adapters.Common.Enums;
using Lib.Architecture.BuildingBlocks;
using System.Text.Json.Serialization;
-namespace Core.Cerberos.Application.UseCases.Roles.Input
+namespace Core.Thalos.Application.UseCases.Roles.Input
{
public class CreateRoleRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Roles/Input/GetAllRolesRequest.cs b/Core.Thalos.Application/UseCases/Roles/Input/GetAllRolesRequest.cs
similarity index 76%
rename from Core.Cerberos.Application/UseCases/Roles/Input/GetAllRolesRequest.cs
rename to Core.Thalos.Application/UseCases/Roles/Input/GetAllRolesRequest.cs
index 23e7dc5..b5851ba 100644
--- a/Core.Cerberos.Application/UseCases/Roles/Input/GetAllRolesRequest.cs
+++ b/Core.Thalos.Application/UseCases/Roles/Input/GetAllRolesRequest.cs
@@ -1,6 +1,6 @@
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Roles.Input
+namespace Core.Thalos.Application.UseCases.Roles.Input
{
public class GetAllRolesRequest : ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Roles/Input/GetRoleRequest.cs b/Core.Thalos.Application/UseCases/Roles/Input/GetRoleRequest.cs
similarity index 80%
rename from Core.Cerberos.Application/UseCases/Roles/Input/GetRoleRequest.cs
rename to Core.Thalos.Application/UseCases/Roles/Input/GetRoleRequest.cs
index 7f424c8..385be8f 100644
--- a/Core.Cerberos.Application/UseCases/Roles/Input/GetRoleRequest.cs
+++ b/Core.Thalos.Application/UseCases/Roles/Input/GetRoleRequest.cs
@@ -1,6 +1,6 @@
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Roles.Input
+namespace Core.Thalos.Application.UseCases.Roles.Input
{
public class GetRoleRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Roles/Input/RemoveApplicationFromRoleRequest.cs b/Core.Thalos.Application/UseCases/Roles/Input/RemoveApplicationFromRoleRequest.cs
similarity index 74%
rename from Core.Cerberos.Application/UseCases/Roles/Input/RemoveApplicationFromRoleRequest.cs
rename to Core.Thalos.Application/UseCases/Roles/Input/RemoveApplicationFromRoleRequest.cs
index ffe3863..684953a 100644
--- a/Core.Cerberos.Application/UseCases/Roles/Input/RemoveApplicationFromRoleRequest.cs
+++ b/Core.Thalos.Application/UseCases/Roles/Input/RemoveApplicationFromRoleRequest.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Adapters.Common.Enums;
+using Core.Thalos.Adapters.Common.Enums;
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Roles.Input
+namespace Core.Thalos.Application.UseCases.Roles.Input
{
public class RemoveApplicationFromRoleRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Roles/Input/UpdateRoleRequest.cs b/Core.Thalos.Application/UseCases/Roles/Input/UpdateRoleRequest.cs
similarity index 86%
rename from Core.Cerberos.Application/UseCases/Roles/Input/UpdateRoleRequest.cs
rename to Core.Thalos.Application/UseCases/Roles/Input/UpdateRoleRequest.cs
index bce0c1d..1aa260a 100644
--- a/Core.Cerberos.Application/UseCases/Roles/Input/UpdateRoleRequest.cs
+++ b/Core.Thalos.Application/UseCases/Roles/Input/UpdateRoleRequest.cs
@@ -1,8 +1,8 @@
-using Core.Cerberos.Adapters.Common.Enums;
+using Core.Thalos.Adapters.Common.Enums;
using Lib.Architecture.BuildingBlocks;
using System.Text.Json.Serialization;
-namespace Core.Cerberos.Application.UseCases.Roles.Input
+namespace Core.Thalos.Application.UseCases.Roles.Input
{
public class UpdateRoleRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Roles/Ports/IRolePort.cs b/Core.Thalos.Application/UseCases/Roles/Ports/IRolePort.cs
similarity index 80%
rename from Core.Cerberos.Application/UseCases/Roles/Ports/IRolePort.cs
rename to Core.Thalos.Application/UseCases/Roles/Ports/IRolePort.cs
index 063a613..766a3ec 100644
--- a/Core.Cerberos.Application/UseCases/Roles/Ports/IRolePort.cs
+++ b/Core.Thalos.Application/UseCases/Roles/Ports/IRolePort.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Adapters;
+using Core.Thalos.Adapters;
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Roles.Ports
+namespace Core.Thalos.Application.UseCases.Roles.Ports
{
public interface IRolePort : IBasePort,
ICommandSuccessPort, ICommandSuccessPort>,
diff --git a/Core.Cerberos.Application/UseCases/Roles/RoleHandler.cs b/Core.Thalos.Application/UseCases/Roles/RoleHandler.cs
similarity index 82%
rename from Core.Cerberos.Application/UseCases/Roles/RoleHandler.cs
rename to Core.Thalos.Application/UseCases/Roles/RoleHandler.cs
index 5bd131b..322572e 100644
--- a/Core.Cerberos.Application/UseCases/Roles/RoleHandler.cs
+++ b/Core.Thalos.Application/UseCases/Roles/RoleHandler.cs
@@ -1,13 +1,13 @@
-using Core.Cerberos.Adapters;
-using Core.Cerberos.Application.UseCases.Roles.Input;
-using Core.Cerberos.Application.UseCases.Roles.Ports;
-using Core.Cerberos.External.Clients;
-using Core.Cerberos.External.Clients.Requests;
+using Core.Thalos.Adapters;
+using Core.Thalos.Application.UseCases.Roles.Input;
+using Core.Thalos.Application.UseCases.Roles.Ports;
+using Core.Thalos.External.Clients;
+using Core.Thalos.External.Clients.Requests;
using FluentValidation;
using Lib.Architecture.BuildingBlocks;
using Lib.Architecture.BuildingBlocks.Helpers;
-namespace Core.Cerberos.Application.UseCases.Role
+namespace Core.Thalos.Application.UseCases.Role
{
public class RoleHandler :
IComponentHandler,
@@ -23,20 +23,20 @@ namespace Core.Cerberos.Application.UseCases.Role
private readonly IValidator _changeRoleStatusValidator;
private readonly IValidator _registerRoleValidator;
private readonly IValidator _updateRoleValidator;
- private readonly ICerberosServiceClient _cerberosDALService;
+ private readonly IThalosServiceClient _thalosDALService;
public RoleHandler(
IRolePort port,
IValidator changeRoleStatusValidator,
IValidator registerRoleValidator,
IValidator updateRoleValidator,
- ICerberosServiceClient cerberosDALService)
+ IThalosServiceClient thalosDALService)
{
_port = port ?? throw new ArgumentNullException(nameof(port));
_changeRoleStatusValidator = changeRoleStatusValidator ?? throw new ArgumentNullException(nameof(changeRoleStatusValidator));
_registerRoleValidator = registerRoleValidator ?? throw new ArgumentNullException(nameof(registerRoleValidator));
_updateRoleValidator = updateRoleValidator ?? throw new ArgumentNullException(nameof(updateRoleValidator));
- _cerberosDALService = cerberosDALService ?? throw new ArgumentNullException(nameof(cerberosDALService));
+ _thalosDALService = thalosDALService ?? throw new ArgumentNullException(nameof(thalosDALService));
}
public async ValueTask ExecuteAsync(GetRoleRequest command, CancellationToken cancellationToken = default)
@@ -45,7 +45,7 @@ namespace Core.Cerberos.Application.UseCases.Role
{
ArgumentNullException.ThrowIfNull(command);
- var result = await _cerberosDALService.GetRoleByIdAsync(command.Id, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.GetRoleByIdAsync(command.Id, cancellationToken).ConfigureAwait(false);
if (result == null)
{
@@ -67,7 +67,7 @@ namespace Core.Cerberos.Application.UseCases.Role
{
ArgumentNullException.ThrowIfNull(command);
- var _result = await _cerberosDALService.GetAllRolesAsync().ConfigureAwait(false);
+ var _result = await _thalosDALService.GetAllRolesAsync().ConfigureAwait(false);
if (!_result.Any())
{
_port.NoContentSuccess();
@@ -93,7 +93,7 @@ namespace Core.Cerberos.Application.UseCases.Role
return;
}
- var result = await _cerberosDALService.ChangeRoleStatusAsync(command.Id, command.Status, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.ChangeRoleStatusAsync(command.Id, command.Status, cancellationToken).ConfigureAwait(false);
if (result == null)
{
@@ -131,7 +131,7 @@ namespace Core.Cerberos.Application.UseCases.Role
};
- var result = await _cerberosDALService.CreateRoleAsync(request, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.CreateRoleAsync(request, cancellationToken).ConfigureAwait(false);
if (result == null)
{
@@ -172,7 +172,7 @@ namespace Core.Cerberos.Application.UseCases.Role
string id = command.Id;
- var result = await _cerberosDALService.UpdateRoleAsync(request, id, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.UpdateRoleAsync(request, id, cancellationToken).ConfigureAwait(false);
if (result == null)
{
@@ -194,7 +194,7 @@ namespace Core.Cerberos.Application.UseCases.Role
{
ArgumentNullException.ThrowIfNull(command);
- var result = await _cerberosDALService.AddApplicationToRoleAsync(command.RoleId, command.Application, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.AddApplicationToRoleAsync(command.RoleId, command.Application, cancellationToken).ConfigureAwait(false);
if (result == null)
{
@@ -216,7 +216,7 @@ namespace Core.Cerberos.Application.UseCases.Role
{
ArgumentNullException.ThrowIfNull(command);
- var result = await _cerberosDALService.RemoveApplicationToRoleAsync(command.RoleId, command.Application, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.RemoveApplicationToRoleAsync(command.RoleId, command.Application, cancellationToken).ConfigureAwait(false);
if (result == null)
{
diff --git a/Core.Cerberos.Application/UseCases/Roles/Validator/ChangeRoleStatusValidator.cs b/Core.Thalos.Application/UseCases/Roles/Validator/ChangeRoleStatusValidator.cs
similarity index 80%
rename from Core.Cerberos.Application/UseCases/Roles/Validator/ChangeRoleStatusValidator.cs
rename to Core.Thalos.Application/UseCases/Roles/Validator/ChangeRoleStatusValidator.cs
index 02d5831..756b0d6 100644
--- a/Core.Cerberos.Application/UseCases/Roles/Validator/ChangeRoleStatusValidator.cs
+++ b/Core.Thalos.Application/UseCases/Roles/Validator/ChangeRoleStatusValidator.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Application.UseCases.Roles.Input;
+using Core.Thalos.Application.UseCases.Roles.Input;
using FluentValidation;
-namespace Core.Cerberos.Application.UseCases.Roles.Validator
+namespace Core.Thalos.Application.UseCases.Roles.Validator
{
public class ChangeRoleStatusValidator : AbstractValidator
{
diff --git a/Core.Cerberos.Application/UseCases/Roles/Validator/CreateRoleValidator.cs b/Core.Thalos.Application/UseCases/Roles/Validator/CreateRoleValidator.cs
similarity index 87%
rename from Core.Cerberos.Application/UseCases/Roles/Validator/CreateRoleValidator.cs
rename to Core.Thalos.Application/UseCases/Roles/Validator/CreateRoleValidator.cs
index 0469039..e2c9596 100644
--- a/Core.Cerberos.Application/UseCases/Roles/Validator/CreateRoleValidator.cs
+++ b/Core.Thalos.Application/UseCases/Roles/Validator/CreateRoleValidator.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Application.UseCases.Roles.Input;
+using Core.Thalos.Application.UseCases.Roles.Input;
using FluentValidation;
-namespace Core.Cerberos.Application.UseCases.Roles.Validator
+namespace Core.Thalos.Application.UseCases.Roles.Validator
{
public class CreateRoleValidator : AbstractValidator
{
diff --git a/Core.Cerberos.Application/UseCases/Roles/Validator/UpdateRoleValidator.cs b/Core.Thalos.Application/UseCases/Roles/Validator/UpdateRoleValidator.cs
similarity index 88%
rename from Core.Cerberos.Application/UseCases/Roles/Validator/UpdateRoleValidator.cs
rename to Core.Thalos.Application/UseCases/Roles/Validator/UpdateRoleValidator.cs
index 91a860f..5ef1233 100644
--- a/Core.Cerberos.Application/UseCases/Roles/Validator/UpdateRoleValidator.cs
+++ b/Core.Thalos.Application/UseCases/Roles/Validator/UpdateRoleValidator.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Application.UseCases.Roles.Input;
+using Core.Thalos.Application.UseCases.Roles.Input;
using FluentValidation;
-namespace Core.Cerberos.Application.UseCases.Roles.Validator
+namespace Core.Thalos.Application.UseCases.Roles.Validator
{
public class UpdateRoleValidator : AbstractValidator
{
diff --git a/Core.Cerberos.Application/UseCases/Users/Adapter/UserPort.cs b/Core.Thalos.Application/UseCases/Users/Adapter/UserPort.cs
similarity index 85%
rename from Core.Cerberos.Application/UseCases/Users/Adapter/UserPort.cs
rename to Core.Thalos.Application/UseCases/Users/Adapter/UserPort.cs
index 8e78581..bfc93b9 100644
--- a/Core.Cerberos.Application/UseCases/Users/Adapter/UserPort.cs
+++ b/Core.Thalos.Application/UseCases/Users/Adapter/UserPort.cs
@@ -1,10 +1,10 @@
using Core.Blueprint.Storage.Adapters;
-using Core.Cerberos.Adapters;
-using Core.Cerberos.Application.UseCases.Users.Ports;
+using Core.Thalos.Adapters;
+using Core.Thalos.Application.UseCases.Users.Ports;
using Lib.Architecture.BuildingBlocks;
using Microsoft.AspNetCore.Mvc;
-namespace Core.Cerberos.Application.UseCases.Users.Adapter
+namespace Core.Thalos.Application.UseCases.Users.Adapter
{
public class UserPort : BasePresenter, IUserPort
{
diff --git a/Core.Cerberos.Application/UseCases/Users/Input/AcceptUserConsentFormRequest.cs b/Core.Thalos.Application/UseCases/Users/Input/AcceptUserConsentFormRequest.cs
similarity index 77%
rename from Core.Cerberos.Application/UseCases/Users/Input/AcceptUserConsentFormRequest.cs
rename to Core.Thalos.Application/UseCases/Users/Input/AcceptUserConsentFormRequest.cs
index 8602422..fc7734a 100644
--- a/Core.Cerberos.Application/UseCases/Users/Input/AcceptUserConsentFormRequest.cs
+++ b/Core.Thalos.Application/UseCases/Users/Input/AcceptUserConsentFormRequest.cs
@@ -1,6 +1,6 @@
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Users.Input
+namespace Core.Thalos.Application.UseCases.Users.Input
{
public class AcceptUserConsentFormRequest : ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Users/Input/AddCompanyToUserRequest.cs b/Core.Thalos.Application/UseCases/Users/Input/AddCompanyToUserRequest.cs
similarity index 83%
rename from Core.Cerberos.Application/UseCases/Users/Input/AddCompanyToUserRequest.cs
rename to Core.Thalos.Application/UseCases/Users/Input/AddCompanyToUserRequest.cs
index d049e1e..afbed2f 100644
--- a/Core.Cerberos.Application/UseCases/Users/Input/AddCompanyToUserRequest.cs
+++ b/Core.Thalos.Application/UseCases/Users/Input/AddCompanyToUserRequest.cs
@@ -1,6 +1,6 @@
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Users.Input
+namespace Core.Thalos.Application.UseCases.Users.Input
{
public class AddCompanyToUserRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Users/Input/AddProjectToUserRequest.cs b/Core.Thalos.Application/UseCases/Users/Input/AddProjectToUserRequest.cs
similarity index 83%
rename from Core.Cerberos.Application/UseCases/Users/Input/AddProjectToUserRequest.cs
rename to Core.Thalos.Application/UseCases/Users/Input/AddProjectToUserRequest.cs
index 73888fa..6982de1 100644
--- a/Core.Cerberos.Application/UseCases/Users/Input/AddProjectToUserRequest.cs
+++ b/Core.Thalos.Application/UseCases/Users/Input/AddProjectToUserRequest.cs
@@ -1,6 +1,6 @@
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Users.Input
+namespace Core.Thalos.Application.UseCases.Users.Input
{
public class AddProjectToUserRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Users/Input/ChangeUserStatusRequest.cs b/Core.Thalos.Application/UseCases/Users/Input/ChangeUserStatusRequest.cs
similarity index 73%
rename from Core.Cerberos.Application/UseCases/Users/Input/ChangeUserStatusRequest.cs
rename to Core.Thalos.Application/UseCases/Users/Input/ChangeUserStatusRequest.cs
index 51deae5..772f16a 100644
--- a/Core.Cerberos.Application/UseCases/Users/Input/ChangeUserStatusRequest.cs
+++ b/Core.Thalos.Application/UseCases/Users/Input/ChangeUserStatusRequest.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Adapters.Common.Enums;
+using Core.Thalos.Adapters.Common.Enums;
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Users.Input
+namespace Core.Thalos.Application.UseCases.Users.Input
{
public class ChangeUserStatusRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Users/Input/CreateUserRequest.cs b/Core.Thalos.Application/UseCases/Users/Input/CreateUserRequest.cs
similarity index 91%
rename from Core.Cerberos.Application/UseCases/Users/Input/CreateUserRequest.cs
rename to Core.Thalos.Application/UseCases/Users/Input/CreateUserRequest.cs
index 9e8c6f7..a4ad0f3 100644
--- a/Core.Cerberos.Application/UseCases/Users/Input/CreateUserRequest.cs
+++ b/Core.Thalos.Application/UseCases/Users/Input/CreateUserRequest.cs
@@ -1,6 +1,6 @@
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Users.Input
+namespace Core.Thalos.Application.UseCases.Users.Input
{
public class CreateUserRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Users/Input/GetAllUsersRequest.cs b/Core.Thalos.Application/UseCases/Users/Input/GetAllUsersRequest.cs
similarity index 76%
rename from Core.Cerberos.Application/UseCases/Users/Input/GetAllUsersRequest.cs
rename to Core.Thalos.Application/UseCases/Users/Input/GetAllUsersRequest.cs
index 3a8eb34..3318e63 100644
--- a/Core.Cerberos.Application/UseCases/Users/Input/GetAllUsersRequest.cs
+++ b/Core.Thalos.Application/UseCases/Users/Input/GetAllUsersRequest.cs
@@ -1,6 +1,6 @@
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Users.Input
+namespace Core.Thalos.Application.UseCases.Users.Input
{
public class GetAllUsersRequest : ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Users/Input/GetConsentFormPDFRequest.cs b/Core.Thalos.Application/UseCases/Users/Input/GetConsentFormPDFRequest.cs
similarity index 76%
rename from Core.Cerberos.Application/UseCases/Users/Input/GetConsentFormPDFRequest.cs
rename to Core.Thalos.Application/UseCases/Users/Input/GetConsentFormPDFRequest.cs
index f2123cf..c8dfda3 100644
--- a/Core.Cerberos.Application/UseCases/Users/Input/GetConsentFormPDFRequest.cs
+++ b/Core.Thalos.Application/UseCases/Users/Input/GetConsentFormPDFRequest.cs
@@ -1,6 +1,6 @@
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Users.Input
+namespace Core.Thalos.Application.UseCases.Users.Input
{
public class GetConsentFormPDFRequest : ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Users/Input/GetTokenAdapterRequest.cs b/Core.Thalos.Application/UseCases/Users/Input/GetTokenAdapterRequest.cs
similarity index 81%
rename from Core.Cerberos.Application/UseCases/Users/Input/GetTokenAdapterRequest.cs
rename to Core.Thalos.Application/UseCases/Users/Input/GetTokenAdapterRequest.cs
index c5c5810..90023e0 100644
--- a/Core.Cerberos.Application/UseCases/Users/Input/GetTokenAdapterRequest.cs
+++ b/Core.Thalos.Application/UseCases/Users/Input/GetTokenAdapterRequest.cs
@@ -1,6 +1,6 @@
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Users.Input
+namespace Core.Thalos.Application.UseCases.Users.Input
{
public class GetTokenAdapterRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Users/Input/GetUserByEmailRequest.cs b/Core.Thalos.Application/UseCases/Users/Input/GetUserByEmailRequest.cs
similarity index 81%
rename from Core.Cerberos.Application/UseCases/Users/Input/GetUserByEmailRequest.cs
rename to Core.Thalos.Application/UseCases/Users/Input/GetUserByEmailRequest.cs
index 7f7590d..854ff16 100644
--- a/Core.Cerberos.Application/UseCases/Users/Input/GetUserByEmailRequest.cs
+++ b/Core.Thalos.Application/UseCases/Users/Input/GetUserByEmailRequest.cs
@@ -1,6 +1,6 @@
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Users.Input
+namespace Core.Thalos.Application.UseCases.Users.Input
{
public class GetUserByEmailRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Users/Input/GetUserRequest.cs b/Core.Thalos.Application/UseCases/Users/Input/GetUserRequest.cs
similarity index 80%
rename from Core.Cerberos.Application/UseCases/Users/Input/GetUserRequest.cs
rename to Core.Thalos.Application/UseCases/Users/Input/GetUserRequest.cs
index a138d98..890a4b4 100644
--- a/Core.Cerberos.Application/UseCases/Users/Input/GetUserRequest.cs
+++ b/Core.Thalos.Application/UseCases/Users/Input/GetUserRequest.cs
@@ -1,6 +1,6 @@
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Users.Input
+namespace Core.Thalos.Application.UseCases.Users.Input
{
public class GetUserRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Users/Input/LoginUserRequest.cs b/Core.Thalos.Application/UseCases/Users/Input/LoginUserRequest.cs
similarity index 81%
rename from Core.Cerberos.Application/UseCases/Users/Input/LoginUserRequest.cs
rename to Core.Thalos.Application/UseCases/Users/Input/LoginUserRequest.cs
index 914f00b..ea6d621 100644
--- a/Core.Cerberos.Application/UseCases/Users/Input/LoginUserRequest.cs
+++ b/Core.Thalos.Application/UseCases/Users/Input/LoginUserRequest.cs
@@ -1,6 +1,6 @@
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Users.Input
+namespace Core.Thalos.Application.UseCases.Users.Input
{
public class LoginUserRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Users/Input/LogoutUserRequest.cs b/Core.Thalos.Application/UseCases/Users/Input/LogoutUserRequest.cs
similarity index 81%
rename from Core.Cerberos.Application/UseCases/Users/Input/LogoutUserRequest.cs
rename to Core.Thalos.Application/UseCases/Users/Input/LogoutUserRequest.cs
index a73132f..5352324 100644
--- a/Core.Cerberos.Application/UseCases/Users/Input/LogoutUserRequest.cs
+++ b/Core.Thalos.Application/UseCases/Users/Input/LogoutUserRequest.cs
@@ -1,6 +1,6 @@
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Users.Input
+namespace Core.Thalos.Application.UseCases.Users.Input
{
public class LogoutUserRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Users/Input/RemoveCompanyFromUserRequest.cs b/Core.Thalos.Application/UseCases/Users/Input/RemoveCompanyFromUserRequest.cs
similarity index 83%
rename from Core.Cerberos.Application/UseCases/Users/Input/RemoveCompanyFromUserRequest.cs
rename to Core.Thalos.Application/UseCases/Users/Input/RemoveCompanyFromUserRequest.cs
index cb0b276..64b4dcc 100644
--- a/Core.Cerberos.Application/UseCases/Users/Input/RemoveCompanyFromUserRequest.cs
+++ b/Core.Thalos.Application/UseCases/Users/Input/RemoveCompanyFromUserRequest.cs
@@ -1,6 +1,6 @@
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Users.Input
+namespace Core.Thalos.Application.UseCases.Users.Input
{
public class RemoveCompanyFromUserRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Users/Input/RemoveProjectFromUserRequest.cs b/Core.Thalos.Application/UseCases/Users/Input/RemoveProjectFromUserRequest.cs
similarity index 83%
rename from Core.Cerberos.Application/UseCases/Users/Input/RemoveProjectFromUserRequest.cs
rename to Core.Thalos.Application/UseCases/Users/Input/RemoveProjectFromUserRequest.cs
index 74a82d4..43a7930 100644
--- a/Core.Cerberos.Application/UseCases/Users/Input/RemoveProjectFromUserRequest.cs
+++ b/Core.Thalos.Application/UseCases/Users/Input/RemoveProjectFromUserRequest.cs
@@ -1,6 +1,6 @@
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Users.Input
+namespace Core.Thalos.Application.UseCases.Users.Input
{
public class RemoveProjectFromUserRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Users/Input/UpdateUserRequest.cs b/Core.Thalos.Application/UseCases/Users/Input/UpdateUserRequest.cs
similarity index 91%
rename from Core.Cerberos.Application/UseCases/Users/Input/UpdateUserRequest.cs
rename to Core.Thalos.Application/UseCases/Users/Input/UpdateUserRequest.cs
index 96f8bb2..92e9a51 100644
--- a/Core.Cerberos.Application/UseCases/Users/Input/UpdateUserRequest.cs
+++ b/Core.Thalos.Application/UseCases/Users/Input/UpdateUserRequest.cs
@@ -1,6 +1,6 @@
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Users.Input
+namespace Core.Thalos.Application.UseCases.Users.Input
{
public class UpdateUserRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Users/Input/ValidateUserExistenceRequest.cs b/Core.Thalos.Application/UseCases/Users/Input/ValidateUserExistenceRequest.cs
similarity index 81%
rename from Core.Cerberos.Application/UseCases/Users/Input/ValidateUserExistenceRequest.cs
rename to Core.Thalos.Application/UseCases/Users/Input/ValidateUserExistenceRequest.cs
index aabe8c6..f8fd996 100644
--- a/Core.Cerberos.Application/UseCases/Users/Input/ValidateUserExistenceRequest.cs
+++ b/Core.Thalos.Application/UseCases/Users/Input/ValidateUserExistenceRequest.cs
@@ -1,6 +1,6 @@
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Users.Input
+namespace Core.Thalos.Application.UseCases.Users.Input
{
public class ValidateUserExistenceRequest : Notificator, ICommand
{
diff --git a/Core.Cerberos.Application/UseCases/Users/Ports/IUserPort.cs b/Core.Thalos.Application/UseCases/Users/Ports/IUserPort.cs
similarity index 86%
rename from Core.Cerberos.Application/UseCases/Users/Ports/IUserPort.cs
rename to Core.Thalos.Application/UseCases/Users/Ports/IUserPort.cs
index 66c8e4d..28ebb8e 100644
--- a/Core.Cerberos.Application/UseCases/Users/Ports/IUserPort.cs
+++ b/Core.Thalos.Application/UseCases/Users/Ports/IUserPort.cs
@@ -1,8 +1,8 @@
using Core.Blueprint.Storage.Adapters;
-using Core.Cerberos.Adapters;
+using Core.Thalos.Adapters;
using Lib.Architecture.BuildingBlocks;
-namespace Core.Cerberos.Application.UseCases.Users.Ports
+namespace Core.Thalos.Application.UseCases.Users.Ports
{
public interface IUserPort : IBasePort,
ICommandSuccessPort,
diff --git a/Core.Cerberos.Application/UseCases/Users/UserHandler.cs b/Core.Thalos.Application/UseCases/Users/UserHandler.cs
similarity index 82%
rename from Core.Cerberos.Application/UseCases/Users/UserHandler.cs
rename to Core.Thalos.Application/UseCases/Users/UserHandler.cs
index 78b7034..505aed6 100644
--- a/Core.Cerberos.Application/UseCases/Users/UserHandler.cs
+++ b/Core.Thalos.Application/UseCases/Users/UserHandler.cs
@@ -1,12 +1,12 @@
-using Core.Cerberos.Adapters;
-using Core.Cerberos.Application.UseCases.Users.Input;
-using Core.Cerberos.Application.UseCases.Users.Ports;
-using Core.Cerberos.External.Clients;
-using Core.Cerberos.External.Clients.Requests;
+using Core.Thalos.Adapters;
+using Core.Thalos.Application.UseCases.Users.Input;
+using Core.Thalos.Application.UseCases.Users.Ports;
+using Core.Thalos.External.Clients;
+using Core.Thalos.External.Clients.Requests;
using FluentValidation;
using Lib.Architecture.BuildingBlocks;
using Lib.Architecture.BuildingBlocks.Helpers;
-namespace Core.Cerberos.Application.UseCases.Users
+namespace Core.Thalos.Application.UseCases.Users
{
public class UserHandler :
IComponentHandler,
@@ -28,20 +28,20 @@ namespace Core.Cerberos.Application.UseCases.Users
private readonly IValidator _changeUserStatusValidator;
private readonly IValidator _registerUserValidator;
private readonly IValidator _updateUserValidator;
- private readonly ICerberosServiceClient _cerberosDALService;
+ private readonly IThalosServiceClient _thalosDALService;
public UserHandler(
IUserPort port,
IValidator changeUserStatusValidator,
IValidator registerUserValidator,
IValidator updateUserValidator,
- ICerberosServiceClient cerberosDALService)
+ IThalosServiceClient thalosDALService)
{
_port = port ?? throw new ArgumentNullException(nameof(port));
_changeUserStatusValidator = changeUserStatusValidator ?? throw new ArgumentNullException(nameof(changeUserStatusValidator));
_registerUserValidator = registerUserValidator ?? throw new ArgumentNullException(nameof(registerUserValidator));
_updateUserValidator = updateUserValidator ?? throw new ArgumentNullException(nameof(updateUserValidator));
- _cerberosDALService = cerberosDALService ?? throw new ArgumentNullException(nameof(cerberosDALService));
+ _thalosDALService = thalosDALService ?? throw new ArgumentNullException(nameof(thalosDALService));
}
public async ValueTask ExecuteAsync(GetUserRequest command, CancellationToken cancellationToken = default)
@@ -50,7 +50,7 @@ namespace Core.Cerberos.Application.UseCases.Users
{
ArgumentNullException.ThrowIfNull(command);
- var result = await _cerberosDALService.GetUserByIdAsync(command.Id, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.GetUserByIdAsync(command.Id, cancellationToken).ConfigureAwait(false);
if (result == null)
{
@@ -72,7 +72,7 @@ namespace Core.Cerberos.Application.UseCases.Users
{
ArgumentNullException.ThrowIfNull(command);
- var result = await _cerberosDALService.GetUserByEmailAsync(command.Email, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.GetUserByEmailAsync(command.Email, cancellationToken).ConfigureAwait(false);
if (result == null)
{
@@ -94,7 +94,7 @@ namespace Core.Cerberos.Application.UseCases.Users
{
ArgumentNullException.ThrowIfNull(command);
- var result = await _cerberosDALService.ValidateUserExistence(command.Email, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.ValidateUserExistence(command.Email, cancellationToken).ConfigureAwait(false);
if (result == null)
{
@@ -116,7 +116,7 @@ namespace Core.Cerberos.Application.UseCases.Users
{
ArgumentNullException.ThrowIfNull(command);
- var _result = await _cerberosDALService.GetAllUsersAsync().ConfigureAwait(false);
+ var _result = await _thalosDALService.GetAllUsersAsync().ConfigureAwait(false);
if (!_result.Any())
{
_port.NoContentSuccess();
@@ -142,7 +142,7 @@ namespace Core.Cerberos.Application.UseCases.Users
return;
}
- var result = await _cerberosDALService.ChangeUserStatusAsync(command.Id, command.Status, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.ChangeUserStatusAsync(command.Id, command.Status, cancellationToken).ConfigureAwait(false);
if (result == null)
{
@@ -181,7 +181,7 @@ namespace Core.Cerberos.Application.UseCases.Users
Projects = command.Projects,
};
- var result = await _cerberosDALService.CreateUserAsync(request, command.SendInvitation, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.CreateUserAsync(request, command.SendInvitation, cancellationToken).ConfigureAwait(false);
if (result == null)
{
@@ -221,7 +221,7 @@ namespace Core.Cerberos.Application.UseCases.Users
Projects = command.Projects
};
- var result = await _cerberosDALService.UpdateUserAsync(request, request.Id, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.UpdateUserAsync(request, request.Id, cancellationToken).ConfigureAwait(false);
if (result == null)
{
@@ -243,7 +243,7 @@ namespace Core.Cerberos.Application.UseCases.Users
{
ArgumentNullException.ThrowIfNull(command);
- var result = await _cerberosDALService.LoginUserAsync(command.Email, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.LoginUserAsync(command.Email, cancellationToken).ConfigureAwait(false);
if (result == null)
{
@@ -265,7 +265,7 @@ namespace Core.Cerberos.Application.UseCases.Users
{
ArgumentNullException.ThrowIfNull(command);
- var result = await _cerberosDALService.LogoutUserAsync(command.Email, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.LogoutUserAsync(command.Email, cancellationToken).ConfigureAwait(false);
if (result == null)
{
@@ -287,7 +287,7 @@ namespace Core.Cerberos.Application.UseCases.Users
{
ArgumentNullException.ThrowIfNull(command);
- var result = await _cerberosDALService.AddCompanyToUserAsync(command.UserId, command.CompanyId, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.AddCompanyToUserAsync(command.UserId, command.CompanyId, cancellationToken).ConfigureAwait(false);
if (result == null)
{
@@ -309,7 +309,7 @@ namespace Core.Cerberos.Application.UseCases.Users
{
ArgumentNullException.ThrowIfNull(command);
- var result = await _cerberosDALService.RemoveCompanyToUserAsync(command.UserId, command.CompanyId, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.RemoveCompanyToUserAsync(command.UserId, command.CompanyId, cancellationToken).ConfigureAwait(false);
if (result == null)
{
@@ -331,7 +331,7 @@ namespace Core.Cerberos.Application.UseCases.Users
{
ArgumentNullException.ThrowIfNull(command);
- var result = await _cerberosDALService.AddProjectToUserAsync(command.UserId, command.ProjectId, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.AddProjectToUserAsync(command.UserId, command.ProjectId, cancellationToken).ConfigureAwait(false);
if (result == null)
{
@@ -353,7 +353,7 @@ namespace Core.Cerberos.Application.UseCases.Users
{
ArgumentNullException.ThrowIfNull(command);
- var result = await _cerberosDALService.RemoveProjectToUserAsync(command.UserId, command.ProjectId, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.RemoveProjectToUserAsync(command.UserId, command.ProjectId, cancellationToken).ConfigureAwait(false);
if (result == null)
{
@@ -375,7 +375,7 @@ namespace Core.Cerberos.Application.UseCases.Users
{
ArgumentNullException.ThrowIfNull(command);
- var result = await _cerberosDALService.GetTokenAdapter(command.Email, cancellationToken).ConfigureAwait(false);
+ var result = await _thalosDALService.GetTokenAdapter(command.Email, cancellationToken).ConfigureAwait(false);
if (result == null)
diff --git a/Core.Cerberos.Application/UseCases/Users/Validator/ChangeUserStatusValidator.cs b/Core.Thalos.Application/UseCases/Users/Validator/ChangeUserStatusValidator.cs
similarity index 80%
rename from Core.Cerberos.Application/UseCases/Users/Validator/ChangeUserStatusValidator.cs
rename to Core.Thalos.Application/UseCases/Users/Validator/ChangeUserStatusValidator.cs
index abaf7cf..85d84cf 100644
--- a/Core.Cerberos.Application/UseCases/Users/Validator/ChangeUserStatusValidator.cs
+++ b/Core.Thalos.Application/UseCases/Users/Validator/ChangeUserStatusValidator.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Application.UseCases.Users.Input;
+using Core.Thalos.Application.UseCases.Users.Input;
using FluentValidation;
-namespace Core.Cerberos.Application.UseCases.Users.Validator
+namespace Core.Thalos.Application.UseCases.Users.Validator
{
public class ChangeUserStatusValidator : AbstractValidator
{
diff --git a/Core.Cerberos.Application/UseCases/Users/Validator/CreateUserValidator.cs b/Core.Thalos.Application/UseCases/Users/Validator/CreateUserValidator.cs
similarity index 88%
rename from Core.Cerberos.Application/UseCases/Users/Validator/CreateUserValidator.cs
rename to Core.Thalos.Application/UseCases/Users/Validator/CreateUserValidator.cs
index a91305b..938f5a3 100644
--- a/Core.Cerberos.Application/UseCases/Users/Validator/CreateUserValidator.cs
+++ b/Core.Thalos.Application/UseCases/Users/Validator/CreateUserValidator.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Application.UseCases.Users.Input;
+using Core.Thalos.Application.UseCases.Users.Input;
using FluentValidation;
-namespace Core.Cerberos.Application.UseCases.Users.Validator
+namespace Core.Thalos.Application.UseCases.Users.Validator
{
public class CreateUserValidator : AbstractValidator
{
diff --git a/Core.Cerberos.Application/UseCases/Users/Validator/UpdateUserValidator.cs b/Core.Thalos.Application/UseCases/Users/Validator/UpdateUserValidator.cs
similarity index 88%
rename from Core.Cerberos.Application/UseCases/Users/Validator/UpdateUserValidator.cs
rename to Core.Thalos.Application/UseCases/Users/Validator/UpdateUserValidator.cs
index 1723ae0..a769fc3 100644
--- a/Core.Cerberos.Application/UseCases/Users/Validator/UpdateUserValidator.cs
+++ b/Core.Thalos.Application/UseCases/Users/Validator/UpdateUserValidator.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Application.UseCases.Users.Input;
+using Core.Thalos.Application.UseCases.Users.Input;
using FluentValidation;
-namespace Core.Cerberos.Application.UseCases.Users.Validator
+namespace Core.Thalos.Application.UseCases.Users.Validator
{
public class UpdateUserValidator : AbstractValidator
{
diff --git a/Core.Cerberos.External/ClientConfiguration/RegisterClientConfiguration.cs b/Core.Thalos.External/ClientConfiguration/RegisterClientConfiguration.cs
similarity index 75%
rename from Core.Cerberos.External/ClientConfiguration/RegisterClientConfiguration.cs
rename to Core.Thalos.External/ClientConfiguration/RegisterClientConfiguration.cs
index 1f8e097..d636383 100644
--- a/Core.Cerberos.External/ClientConfiguration/RegisterClientConfiguration.cs
+++ b/Core.Thalos.External/ClientConfiguration/RegisterClientConfiguration.cs
@@ -1,6 +1,6 @@
-using Core.Cerberos.External.Clients;
-using Core.Cerberos.External.GatewayConfigurations;
-using Core.Cerberos.External.Helpers.Token;
+using Core.Thalos.External.Clients;
+using Core.Thalos.External.GatewayConfigurations;
+using Core.Thalos.External.Helpers.Token;
using Lib.Architecture.BuildingBlocks;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Http;
@@ -8,7 +8,7 @@ using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Refit;
-namespace Core.Cerberos.External.ClientConfiguration
+namespace Core.Thalos.External.ClientConfiguration
{
public static class RegisterClientConfiguration
{
@@ -37,18 +37,18 @@ namespace Core.Cerberos.External.ClientConfiguration
return handler;
});
- var cerberosServiceApiUrl = GatewaySettingsConfigurations.GetCerberosServiceAPIEndpoint().Endpoint.Url;
+ var thalosServiceApiUrl = GatewaySettingsConfigurations.GetThalosServiceAPIEndpoint().Endpoint.Url;
- // Register ICerberosServiceClient with the manually created HttpClient
- services.AddScoped(provider =>
+ // Register IThalosServiceClient with the manually created HttpClient
+ services.AddScoped(provider =>
{
var handler = provider.GetRequiredService();
var httpClient = new HttpClient(handler)
{
- BaseAddress = new Uri(cerberosServiceApiUrl),
+ BaseAddress = new Uri(thalosServiceApiUrl),
Timeout = TimeSpan.FromMinutes(1)
};
- return RestService.For(httpClient);
+ return RestService.For(httpClient);
});
services.AddScoped();
diff --git a/Core.Cerberos.External/Clients/ICerberosServiceClient.cs b/Core.Thalos.External/Clients/IThalosServiceClient.cs
similarity index 96%
rename from Core.Cerberos.External/Clients/ICerberosServiceClient.cs
rename to Core.Thalos.External/Clients/IThalosServiceClient.cs
index 948b5a8..b0cb78a 100644
--- a/Core.Cerberos.External/Clients/ICerberosServiceClient.cs
+++ b/Core.Thalos.External/Clients/IThalosServiceClient.cs
@@ -1,14 +1,14 @@
using Core.Blueprint.Storage.Adapters;
-using Core.Cerberos.Adapters;
-using Core.Cerberos.Adapters.Common.Constants;
-using Core.Cerberos.Adapters.Common.Enums;
-using Core.Cerberos.External.Clients.Requests;
+using Core.Thalos.Adapters;
+using Core.Thalos.Adapters.Common.Constants;
+using Core.Thalos.Adapters.Common.Enums;
+using Core.Thalos.External.Clients.Requests;
using Microsoft.AspNetCore.Mvc;
using Refit;
-namespace Core.Cerberos.External.Clients
+namespace Core.Thalos.External.Clients
{
- public interface ICerberosServiceClient
+ public interface IThalosServiceClient
{
[Get("/v1/User")]
Task> GetAllUsersAsync(CancellationToken cancellationToken = default);
diff --git a/Core.Cerberos.External/Clients/Requests/ModuleRequest.cs b/Core.Thalos.External/Clients/Requests/ModuleRequest.cs
similarity index 81%
rename from Core.Cerberos.External/Clients/Requests/ModuleRequest.cs
rename to Core.Thalos.External/Clients/Requests/ModuleRequest.cs
index 2aaaece..9fc0b99 100644
--- a/Core.Cerberos.External/Clients/Requests/ModuleRequest.cs
+++ b/Core.Thalos.External/Clients/Requests/ModuleRequest.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Adapters.Common.Enums;
+using Core.Thalos.Adapters.Common.Enums;
using System.Text.Json.Serialization;
-namespace Core.Cerberos.External.Clients.Requests
+namespace Core.Thalos.External.Clients.Requests
{
public class ModuleRequest
{
diff --git a/Core.Cerberos.External/Clients/Requests/PermissionRequest.cs b/Core.Thalos.External/Clients/Requests/PermissionRequest.cs
similarity index 72%
rename from Core.Cerberos.External/Clients/Requests/PermissionRequest.cs
rename to Core.Thalos.External/Clients/Requests/PermissionRequest.cs
index 8049d4c..5c8c8cc 100644
--- a/Core.Cerberos.External/Clients/Requests/PermissionRequest.cs
+++ b/Core.Thalos.External/Clients/Requests/PermissionRequest.cs
@@ -1,6 +1,6 @@
-using Core.Cerberos.Adapters.Common.Constants;
+using Core.Thalos.Adapters.Common.Constants;
-namespace Core.Cerberos.External.Clients.Requests
+namespace Core.Thalos.External.Clients.Requests
{
public class PermissionRequest
{
diff --git a/Core.Cerberos.External/Clients/Requests/RoleRequest.cs b/Core.Thalos.External/Clients/Requests/RoleRequest.cs
similarity index 81%
rename from Core.Cerberos.External/Clients/Requests/RoleRequest.cs
rename to Core.Thalos.External/Clients/Requests/RoleRequest.cs
index 11ad9dc..9a9d5df 100644
--- a/Core.Cerberos.External/Clients/Requests/RoleRequest.cs
+++ b/Core.Thalos.External/Clients/Requests/RoleRequest.cs
@@ -1,7 +1,7 @@
-using Core.Cerberos.Adapters.Common.Enums;
+using Core.Thalos.Adapters.Common.Enums;
using System.Text.Json.Serialization;
-namespace Core.Cerberos.External.Clients.Requests
+namespace Core.Thalos.External.Clients.Requests
{
public class RoleRequest
{
diff --git a/Core.Cerberos.External/Clients/Requests/UserRequest.cs b/Core.Thalos.External/Clients/Requests/UserRequest.cs
similarity index 88%
rename from Core.Cerberos.External/Clients/Requests/UserRequest.cs
rename to Core.Thalos.External/Clients/Requests/UserRequest.cs
index 8fe46d0..51f70bb 100644
--- a/Core.Cerberos.External/Clients/Requests/UserRequest.cs
+++ b/Core.Thalos.External/Clients/Requests/UserRequest.cs
@@ -1,4 +1,4 @@
-namespace Core.Cerberos.External.Clients.Requests
+namespace Core.Thalos.External.Clients.Requests
{
public class UserRequest
{
diff --git a/Core.Cerberos.External/Core.Cerberos.External.csproj b/Core.Thalos.External/Core.Thalos.External.csproj
similarity index 85%
rename from Core.Cerberos.External/Core.Cerberos.External.csproj
rename to Core.Thalos.External/Core.Thalos.External.csproj
index 34c418e..8c9b4f7 100644
--- a/Core.Cerberos.External/Core.Cerberos.External.csproj
+++ b/Core.Thalos.External/Core.Thalos.External.csproj
@@ -9,7 +9,7 @@
-
+
diff --git a/Core.Cerberos.External/GatewayConfigurations/GatewayConfiguration.cs b/Core.Thalos.External/GatewayConfigurations/GatewayConfiguration.cs
similarity index 54%
rename from Core.Cerberos.External/GatewayConfigurations/GatewayConfiguration.cs
rename to Core.Thalos.External/GatewayConfigurations/GatewayConfiguration.cs
index 3ff78d2..33e587e 100644
--- a/Core.Cerberos.External/GatewayConfigurations/GatewayConfiguration.cs
+++ b/Core.Thalos.External/GatewayConfigurations/GatewayConfiguration.cs
@@ -1,17 +1,17 @@
using Core.Blueprint.External;
-namespace Core.Cerberos.External.GatewayConfigurations
+namespace Core.Thalos.External.GatewayConfigurations
{
public record GatewayConfiguration
{
public GatewayConfiguration()
{
- CerberosService = new CerberosServiceAPI();
+ ThalosService = new ThalosServiceAPI();
}
- public CerberosServiceAPI CerberosService { get; set; }
+ public ThalosServiceAPI ThalosService { get; set; }
}
- public record CerberosServiceAPI
+ public record ThalosServiceAPI
{
public string Channel { get; set; }
public BaseEndpoint Endpoint { get; set; }
diff --git a/Core.Cerberos.External/GatewayConfigurations/GatewaySettingsConfigurations.cs b/Core.Thalos.External/GatewayConfigurations/GatewaySettingsConfigurations.cs
similarity index 68%
rename from Core.Cerberos.External/GatewayConfigurations/GatewaySettingsConfigurations.cs
rename to Core.Thalos.External/GatewayConfigurations/GatewaySettingsConfigurations.cs
index 97fdda0..ea58c3f 100644
--- a/Core.Cerberos.External/GatewayConfigurations/GatewaySettingsConfigurations.cs
+++ b/Core.Thalos.External/GatewayConfigurations/GatewaySettingsConfigurations.cs
@@ -1,7 +1,7 @@
using Core.Blueprint.External;
using Microsoft.Extensions.Configuration;
-namespace Core.Cerberos.External.GatewayConfigurations
+namespace Core.Thalos.External.GatewayConfigurations
{
public class GatewaySettingsConfigurations
{
@@ -11,13 +11,13 @@ namespace Core.Cerberos.External.GatewayConfigurations
public GatewaySettingsConfigurations(IConfiguration configuration)
{
_configuration = configuration;
- this.SetCerberosServiceAPIEndpoint();
+ this.SetThalosServiceAPIEndpoint();
}
- public static CerberosServiceAPI GetCerberosServiceAPIEndpoint()
+ public static ThalosServiceAPI GetThalosServiceAPIEndpoint()
{
- return GatewayConfigurations.CerberosService;
+ return GatewayConfigurations.ThalosService;
}
- private GatewayConfiguration SetCerberosServiceAPIEndpoint()
+ private GatewayConfiguration SetThalosServiceAPIEndpoint()
{
IConfigurationSection source;
var environment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? string.Empty;
@@ -27,18 +27,18 @@ namespace Core.Cerberos.External.GatewayConfigurations
else
source = _configuration.GetSection("Gateways");
- var endpoint = source["CerberosDAL"] ?? string.Empty;
+ var endpoint = source["ThalosDAL"] ?? string.Empty;
- if (string.IsNullOrEmpty(endpoint)) throw new Exception("Cerberos DAL endpoint is empty or null");
+ if (string.IsNullOrEmpty(endpoint)) throw new Exception("Thalos DAL endpoint is empty or null");
- GatewayConfigurations.CerberosService = new CerberosServiceAPI()
+ GatewayConfigurations.ThalosService = new ThalosServiceAPI()
{
Endpoint = new BaseEndpoint()
{
Uri = new Uri(endpoint),
Url = endpoint,
Token = string.Empty,
- APIName = "Cerberos Service"
+ APIName = "Thalos Service"
}
};
diff --git a/Core.Cerberos.External/Helpers/Token/AuthenticatedHttpClientHandler.cs b/Core.Thalos.External/Helpers/Token/AuthenticatedHttpClientHandler.cs
similarity index 95%
rename from Core.Cerberos.External/Helpers/Token/AuthenticatedHttpClientHandler.cs
rename to Core.Thalos.External/Helpers/Token/AuthenticatedHttpClientHandler.cs
index 093b48e..16edee3 100644
--- a/Core.Cerberos.External/Helpers/Token/AuthenticatedHttpClientHandler.cs
+++ b/Core.Thalos.External/Helpers/Token/AuthenticatedHttpClientHandler.cs
@@ -4,7 +4,7 @@
//
// ***********************************************************************
-namespace Core.Cerberos.External.Helpers.Token
+namespace Core.Thalos.External.Helpers.Token
{
///
/// Class to inject the token in all requests.
diff --git a/Core.Cerberos.External/Helpers/Token/HttpContextTokenProvider.cs b/Core.Thalos.External/Helpers/Token/HttpContextTokenProvider.cs
similarity index 95%
rename from Core.Cerberos.External/Helpers/Token/HttpContextTokenProvider.cs
rename to Core.Thalos.External/Helpers/Token/HttpContextTokenProvider.cs
index 2a86556..7d6f480 100644
--- a/Core.Cerberos.External/Helpers/Token/HttpContextTokenProvider.cs
+++ b/Core.Thalos.External/Helpers/Token/HttpContextTokenProvider.cs
@@ -6,7 +6,7 @@
using Microsoft.AspNetCore.Http;
-namespace Core.Cerberos.External.Helpers.Token
+namespace Core.Thalos.External.Helpers.Token
{
///
/// Class to return the access token to controllers.
diff --git a/Core.Cerberos.External/Helpers/Token/ITokenProvider.cs b/Core.Thalos.External/Helpers/Token/ITokenProvider.cs
similarity index 90%
rename from Core.Cerberos.External/Helpers/Token/ITokenProvider.cs
rename to Core.Thalos.External/Helpers/Token/ITokenProvider.cs
index c2fdfa2..0eb4cb7 100644
--- a/Core.Cerberos.External/Helpers/Token/ITokenProvider.cs
+++ b/Core.Thalos.External/Helpers/Token/ITokenProvider.cs
@@ -4,7 +4,7 @@
//
// ***********************************************************************
-namespace Core.Cerberos.External.Helpers.Token
+namespace Core.Thalos.External.Helpers.Token
{
///
/// Interface for token provider.
diff --git a/Core.Cerberos.Service.API.sln b/Core.Thalos.Service.API.sln
similarity index 80%
rename from Core.Cerberos.Service.API.sln
rename to Core.Thalos.Service.API.sln
index 9c79e7f..ff0ef1e 100644
--- a/Core.Cerberos.Service.API.sln
+++ b/Core.Thalos.Service.API.sln
@@ -3,15 +3,15 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.10.34928.147
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Core.Cerberos.Service.API", "Core.Cerberos.Service.API\Core.Cerberos.Service.API.csproj", "{00F5B578-77EE-44A9-A611-5D753FDF158D}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Core.Thalos.Service.API", "Core.Thalos.Service.API\Core.Thalos.Service.API.csproj", "{00F5B578-77EE-44A9-A611-5D753FDF158D}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Application", "Application", "{F33D7786-EFE5-4618-9D47-C0272227C095}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Presentation", "Presentation", "{685F19C0-CE60-4BFB-9EDB-6834D01A6161}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Core.Cerberos.External", "Core.Cerberos.External\Core.Cerberos.External.csproj", "{52EB3BBE-DACB-4EE5-8FFA-B8DBE34BA137}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Core.Thalos.External", "Core.Thalos.External\Core.Thalos.External.csproj", "{52EB3BBE-DACB-4EE5-8FFA-B8DBE34BA137}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core.Cerberos.Application", "Core.Cerberos.Application\Core.Cerberos.Application.csproj", "{F1980B4D-35C3-4495-84CF-09E1D3822CDA}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core.Thalos.Application", "Core.Thalos.Application\Core.Thalos.Application.csproj", "{F1980B4D-35C3-4495-84CF-09E1D3822CDA}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
diff --git a/Core.Cerberos.Service.API/Controllers/ModuleController.cs b/Core.Thalos.Service.API/Controllers/ModuleController.cs
similarity index 93%
rename from Core.Cerberos.Service.API/Controllers/ModuleController.cs
rename to Core.Thalos.Service.API/Controllers/ModuleController.cs
index 4bf1450..a073cc0 100644
--- a/Core.Cerberos.Service.API/Controllers/ModuleController.cs
+++ b/Core.Thalos.Service.API/Controllers/ModuleController.cs
@@ -1,14 +1,14 @@
using Asp.Versioning;
-using Core.Cerberos.Adapters;
-using Core.Cerberos.Adapters.Attributes;
-using Core.Cerberos.Adapters.Common.Constants;
-using Core.Cerberos.Application.UseCases.Modules.Input;
-using Core.Cerberos.Application.UseCases.Modules.Ports;
+using Core.Thalos.Adapters;
+using Core.Thalos.Adapters.Attributes;
+using Core.Thalos.Adapters.Common.Constants;
+using Core.Thalos.Application.UseCases.Modules.Input;
+using Core.Thalos.Application.UseCases.Modules.Ports;
using Lib.Architecture.BuildingBlocks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
-namespace Core.Cerberos.Service.API.Controllers
+namespace Core.Thalos.Service.API.Controllers
{
///
/// Handles all services and business rules related to .
@@ -60,7 +60,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("ModuleManagement.Read, RoleManagement.Read")]
public async Task GetAllModulesAsync(CancellationToken cancellationToken)
{
@@ -91,7 +91,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status412PreconditionFailed)]
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("ModuleManagement.Read")]
public async Task GetAllModulesByListAsync([FromBody] GetAllModulesByListRequest request, CancellationToken cancellationToken)
{
@@ -118,7 +118,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status412PreconditionFailed)]
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("ModuleManagement.Read")]
public async Task GetModuleById([FromBody] GetModuleRequest request, CancellationToken cancellationToken)
{
@@ -144,7 +144,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("ModuleManagement.Write")]
public async Task CreateModuleAsync([FromBody] CreateModuleRequest newModule, CancellationToken cancellationToken = default)
{
@@ -164,7 +164,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("ModuleManagement.Write")]
public async Task UpdateModuleAsync([FromBody] UpdateModuleRequest request, CancellationToken cancellationToken = default)
{
@@ -185,7 +185,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status412PreconditionFailed)]
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("ModuleManagement.Write")]
public async Task ChangeModuleStatusAsync([FromBody] ChangeModuleStatusRequest request,
CancellationToken cancellationToken)
diff --git a/Core.Cerberos.Service.API/Controllers/PermissionController.cs b/Core.Thalos.Service.API/Controllers/PermissionController.cs
similarity index 93%
rename from Core.Cerberos.Service.API/Controllers/PermissionController.cs
rename to Core.Thalos.Service.API/Controllers/PermissionController.cs
index 0c43203..25e1322 100644
--- a/Core.Cerberos.Service.API/Controllers/PermissionController.cs
+++ b/Core.Thalos.Service.API/Controllers/PermissionController.cs
@@ -1,14 +1,14 @@
using Asp.Versioning;
-using Core.Cerberos.Adapters;
-using Core.Cerberos.Adapters.Attributes;
-using Core.Cerberos.Adapters.Common.Constants;
-using Core.Cerberos.Application.UseCases.Permissions.Input;
-using Core.Cerberos.Application.UseCases.Permissions.Ports;
+using Core.Thalos.Adapters;
+using Core.Thalos.Adapters.Attributes;
+using Core.Thalos.Adapters.Common.Constants;
+using Core.Thalos.Application.UseCases.Permissions.Input;
+using Core.Thalos.Application.UseCases.Permissions.Ports;
using Lib.Architecture.BuildingBlocks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
-namespace Core.Cerberos.Service.API.Controllers
+namespace Core.Thalos.Service.API.Controllers
{
///
/// Handles all services and business rules related to .
@@ -60,7 +60,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("PermissionManagement.Read, RoleManagement.Read")]
public async Task GetAllPermissionsAsync(CancellationToken cancellationToken)
{
@@ -91,7 +91,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status412PreconditionFailed)]
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("PermissionManagement.Read")]
public async Task GetAllPermissionsByListAsync([FromBody] GetAllPermissionsByListRequest request, CancellationToken cancellationToken)
{
@@ -118,7 +118,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status412PreconditionFailed)]
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("PermissionManagement.Read")]
public async Task GetPermissionById([FromBody] GetPermissionRequest request, CancellationToken cancellationToken)
{
@@ -144,7 +144,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("PermissionManagement.Write")]
public async Task CreatePermissionAsync([FromBody] CreatePermissionRequest newPermission, CancellationToken cancellationToken = default)
{
@@ -164,7 +164,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("PermissionManagement.Write")]
public async Task UpdatePermissionAsync([FromBody] UpdatePermissionRequest request, CancellationToken cancellationToken = default)
{
@@ -185,7 +185,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status412PreconditionFailed)]
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("PermissionManagement.Write")]
public async Task ChangePermissionStatusAsync([FromBody] ChangePermissionStatusRequest request,
CancellationToken cancellationToken)
diff --git a/Core.Cerberos.Service.API/Controllers/RoleController.cs b/Core.Thalos.Service.API/Controllers/RoleController.cs
similarity index 92%
rename from Core.Cerberos.Service.API/Controllers/RoleController.cs
rename to Core.Thalos.Service.API/Controllers/RoleController.cs
index 32d6a14..8a643e2 100644
--- a/Core.Cerberos.Service.API/Controllers/RoleController.cs
+++ b/Core.Thalos.Service.API/Controllers/RoleController.cs
@@ -1,13 +1,13 @@
using Asp.Versioning;
-using Core.Cerberos.Adapters.Attributes;
-using Core.Cerberos.Adapters.Common.Constants;
-using Core.Cerberos.Application.UseCases.Roles.Input;
-using Core.Cerberos.Application.UseCases.Roles.Ports;
+using Core.Thalos.Adapters.Attributes;
+using Core.Thalos.Adapters.Common.Constants;
+using Core.Thalos.Application.UseCases.Roles.Input;
+using Core.Thalos.Application.UseCases.Roles.Ports;
using Lib.Architecture.BuildingBlocks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
-namespace Core.Cerberos.Service.API.Controllers
+namespace Core.Thalos.Service.API.Controllers
{
///
/// Handles all requests for role authentication.
@@ -16,7 +16,7 @@ namespace Core.Cerberos.Service.API.Controllers
[Route("api/v{api-version:apiVersion}/[controller]")]
[Produces("application/json")]
[ApiController]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
public class RoleController : ControllerBase
{
private readonly IComponentHandler getRoleHandler;
@@ -63,7 +63,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("RoleManagement.Read")]
public async Task GetAllRolesAsync(CancellationToken cancellationToken)
{
@@ -84,7 +84,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status412PreconditionFailed)]
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("RoleManagement.Read")]
public async Task GetRoleById([FromBody] GetRoleRequest request, CancellationToken cancellationToken)
{
@@ -106,7 +106,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("RoleManagement.Write")]
public async Task CreateRoleAsync([FromBody] CreateRoleRequest newRole, CancellationToken cancellationToken = default)
{
@@ -126,7 +126,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("RoleManagement.Write")]
public async Task UpdateRoleAsync([FromBody] UpdateRoleRequest entity, CancellationToken cancellationToken = default)
{
@@ -147,7 +147,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status412PreconditionFailed)]
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("RoleManagement.Write")]
public async Task ChageRoleStatusAsync(ChangeRoleStatusRequest request, CancellationToken cancellationToken)
{
@@ -170,7 +170,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status412PreconditionFailed)]
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("RoleManagement.Write")]
public async Task AddApplicationToRoleAsync(AddApplicationToRoleRequest request, CancellationToken cancellationToken)
{
@@ -193,7 +193,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status412PreconditionFailed)]
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("RoleManagement.Write")]
public async Task RemoveApplicationToRoleAsync(RemoveApplicationFromRoleRequest request,
CancellationToken cancellationToken)
diff --git a/Core.Cerberos.Service.API/Controllers/UserController.cs b/Core.Thalos.Service.API/Controllers/UserController.cs
similarity index 94%
rename from Core.Cerberos.Service.API/Controllers/UserController.cs
rename to Core.Thalos.Service.API/Controllers/UserController.cs
index 68b6413..e835a6c 100644
--- a/Core.Cerberos.Service.API/Controllers/UserController.cs
+++ b/Core.Thalos.Service.API/Controllers/UserController.cs
@@ -1,14 +1,14 @@
using Asp.Versioning;
-using Core.Cerberos.Adapters;
-using Core.Cerberos.Adapters.Attributes;
-using Core.Cerberos.Adapters.Common.Constants;
-using Core.Cerberos.Application.UseCases.Users.Input;
-using Core.Cerberos.Application.UseCases.Users.Ports;
+using Core.Thalos.Adapters;
+using Core.Thalos.Adapters.Attributes;
+using Core.Thalos.Adapters.Common.Constants;
+using Core.Thalos.Application.UseCases.Users.Input;
+using Core.Thalos.Application.UseCases.Users.Ports;
using Lib.Architecture.BuildingBlocks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
-namespace Core.Cerberos.Service.API.Controllers
+namespace Core.Thalos.Service.API.Controllers
{
///
/// Handles all requests for user.
@@ -90,7 +90,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("UserManagement.Read")]
public async Task GetAllUsersAsync(CancellationToken cancellationToken)
{
@@ -111,7 +111,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status412PreconditionFailed)]
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("UserManagement.Read")]
public async Task GetUserById([FromBody] GetUserRequest request, CancellationToken cancellationToken)
{
@@ -134,7 +134,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status412PreconditionFailed)]
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
- [Authorize(AuthenticationSchemes = $"{Schemes.HeathScheme}, {Schemes.AzureScheme}")]
+ [Authorize(AuthenticationSchemes = $"{Schemes.DefaultScheme}, {Schemes.AzureScheme}")]
public async Task GetUserByEmail([FromBody] GetUserByEmailRequest request, CancellationToken cancellationToken)
{
if (string.IsNullOrEmpty(request.Email)) { return BadRequest("Invalid user email"); }
@@ -156,7 +156,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("UserManagement.Write")]
public async Task CreateUserAsync([FromBody] CreateUserRequest newUser, CancellationToken cancellationToken = default)
{
@@ -176,7 +176,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("UserManagement.Write")]
public async Task UpdateUserAsync([FromBody] UpdateUserRequest request,
CancellationToken cancellationToken = default)
@@ -197,7 +197,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
- [Authorize(AuthenticationSchemes = $"{Schemes.HeathScheme}, {Schemes.AzureScheme}")]
+ [Authorize(AuthenticationSchemes = $"{Schemes.DefaultScheme}, {Schemes.AzureScheme}")]
public async Task LoginUserAsync([FromBody] LoginUserRequest request, CancellationToken cancellationToken)
{
if (string.IsNullOrEmpty(request.Email)) { return BadRequest("Invalid user email"); }
@@ -239,7 +239,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status412PreconditionFailed)]
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("UserManagement.Write")]
public async Task ChangeUserStatusAsync([FromBody] ChangeUserStatusRequest request, CancellationToken cancellationToken)
{
@@ -262,7 +262,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status412PreconditionFailed)]
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("UserManagement.Write")]
public async Task AddCompanyToUserAsync([FromBody] AddCompanyToUserRequest request,
CancellationToken cancellationToken)
@@ -287,7 +287,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status412PreconditionFailed)]
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("UserManagement.Write")]
public async Task RemoveCompanyFromUserAsync([FromBody] RemoveCompanyFromUserRequest request,
CancellationToken cancellationToken)
@@ -312,7 +312,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status412PreconditionFailed)]
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("UserManagement.Write")]
public async Task AddProjectToUserAsync([FromBody] AddProjectToUserRequest request,
CancellationToken cancellationToken)
@@ -337,7 +337,7 @@ namespace Core.Cerberos.Service.API.Controllers
[ProducesResponseType(typeof(Notification), StatusCodes.Status412PreconditionFailed)]
[ProducesResponseType(typeof(Notification), StatusCodes.Status422UnprocessableEntity)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
- [Authorize(AuthenticationSchemes = Schemes.HeathScheme)]
+ [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("UserManagement.Write")]
public async Task RemoveProjectFromUserAsync([FromBody] RemoveProjectFromUserRequest request,
CancellationToken cancellationToken)
@@ -379,7 +379,7 @@ namespace Core.Cerberos.Service.API.Controllers
[HttpPost]
[Route("GetTokenAdapter")]
[ProducesResponseType(typeof(TokenAdapter), StatusCodes.Status200OK)]
- [Authorize(AuthenticationSchemes = $"{Schemes.HeathScheme}, {Schemes.AzureScheme}")]
+ [Authorize(AuthenticationSchemes = $"{Schemes.DefaultScheme}, {Schemes.AzureScheme}")]
public async Task GetTokenAdapter([FromBody] GetTokenAdapterRequest request, CancellationToken cancellationToken)
{
if (string.IsNullOrEmpty(request.Email)) { return BadRequest("Invalid user email"); }
diff --git a/Core.Cerberos.Service.API/Core.Cerberos.Service.API.csproj b/Core.Thalos.Service.API/Core.Thalos.Service.API.csproj
similarity index 70%
rename from Core.Cerberos.Service.API/Core.Cerberos.Service.API.csproj
rename to Core.Thalos.Service.API/Core.Thalos.Service.API.csproj
index 2a95609..95fcd28 100644
--- a/Core.Cerberos.Service.API/Core.Cerberos.Service.API.csproj
+++ b/Core.Thalos.Service.API/Core.Thalos.Service.API.csproj
@@ -1,4 +1,4 @@
-
+
net8.0
@@ -8,8 +8,8 @@
-
-
+
+
diff --git a/Core.Cerberos.Service.API/Extensions/SwaggerExtensions.cs b/Core.Thalos.Service.API/Extensions/SwaggerExtensions.cs
similarity index 98%
rename from Core.Cerberos.Service.API/Extensions/SwaggerExtensions.cs
rename to Core.Thalos.Service.API/Extensions/SwaggerExtensions.cs
index e505236..f4eebf4 100644
--- a/Core.Cerberos.Service.API/Extensions/SwaggerExtensions.cs
+++ b/Core.Thalos.Service.API/Extensions/SwaggerExtensions.cs
@@ -4,7 +4,7 @@ using Microsoft.OpenApi.Models;
using Swashbuckle.AspNetCore.SwaggerGen;
using Swashbuckle.AspNetCore.SwaggerUI;
-namespace Core.Cerberos.Service.API.Extensions
+namespace Core.Thalos.Service.API.Extensions
{
public static class SwaggerExtensions
{
diff --git a/Core.Cerberos.Service.API/Program.cs b/Core.Thalos.Service.API/Program.cs
similarity index 82%
rename from Core.Cerberos.Service.API/Program.cs
rename to Core.Thalos.Service.API/Program.cs
index 0423a11..6cc43e5 100644
--- a/Core.Cerberos.Service.API/Program.cs
+++ b/Core.Thalos.Service.API/Program.cs
@@ -1,27 +1,27 @@
-using Core.Cerberos.Adapters.Extensions;
-using Core.Cerberos.Adapters.Helpers;
-using Core.Cerberos.Application.UseCases.Modules;
-using Core.Cerberos.Application.UseCases.Modules.Adapter;
-using Core.Cerberos.Application.UseCases.Modules.Input;
-using Core.Cerberos.Application.UseCases.Modules.Ports;
-using Core.Cerberos.Application.UseCases.Modules.Validator;
-using Core.Cerberos.Application.UseCases.Permissions;
-using Core.Cerberos.Application.UseCases.Permissions.Adapter;
-using Core.Cerberos.Application.UseCases.Permissions.Input;
-using Core.Cerberos.Application.UseCases.Permissions.Ports;
-using Core.Cerberos.Application.UseCases.Permissions.Validator;
-using Core.Cerberos.Application.UseCases.Role;
-using Core.Cerberos.Application.UseCases.Roles.Adapter;
-using Core.Cerberos.Application.UseCases.Roles.Input;
-using Core.Cerberos.Application.UseCases.Roles.Ports;
-using Core.Cerberos.Application.UseCases.Roles.Validator;
-using Core.Cerberos.Application.UseCases.Users;
-using Core.Cerberos.Application.UseCases.Users.Adapter;
-using Core.Cerberos.Application.UseCases.Users.Input;
-using Core.Cerberos.Application.UseCases.Users.Ports;
-using Core.Cerberos.Application.UseCases.Users.Validator;
-using Core.Cerberos.External.ClientConfiguration;
-using Core.Cerberos.Service.API.Extensions;
+using Core.Thalos.Adapters.Extensions;
+using Core.Thalos.Adapters.Helpers;
+using Core.Thalos.Application.UseCases.Modules;
+using Core.Thalos.Application.UseCases.Modules.Adapter;
+using Core.Thalos.Application.UseCases.Modules.Input;
+using Core.Thalos.Application.UseCases.Modules.Ports;
+using Core.Thalos.Application.UseCases.Modules.Validator;
+using Core.Thalos.Application.UseCases.Permissions;
+using Core.Thalos.Application.UseCases.Permissions.Adapter;
+using Core.Thalos.Application.UseCases.Permissions.Input;
+using Core.Thalos.Application.UseCases.Permissions.Ports;
+using Core.Thalos.Application.UseCases.Permissions.Validator;
+using Core.Thalos.Application.UseCases.Role;
+using Core.Thalos.Application.UseCases.Roles.Adapter;
+using Core.Thalos.Application.UseCases.Roles.Input;
+using Core.Thalos.Application.UseCases.Roles.Ports;
+using Core.Thalos.Application.UseCases.Roles.Validator;
+using Core.Thalos.Application.UseCases.Users;
+using Core.Thalos.Application.UseCases.Users.Adapter;
+using Core.Thalos.Application.UseCases.Users.Input;
+using Core.Thalos.Application.UseCases.Users.Ports;
+using Core.Thalos.Application.UseCases.Users.Validator;
+using Core.Thalos.External.ClientConfiguration;
+using Core.Thalos.Service.API.Extensions;
using FluentValidation;
using Lib.Architecture.BuildingBlocks;
using Microsoft.AspNetCore.ResponseCompression;
@@ -29,7 +29,7 @@ using System.IO.Compression;
var builder = WebApplication.CreateBuilder(args);
-var authSettings = AuthHelper.GetAuthSettings(builder, "cerberos_service");
+var authSettings = AuthHelper.GetAuthSettings(builder, "thalos_service");
builder.Services.ConfigureAuthentication(builder.Configuration, authSettings);
@@ -64,7 +64,7 @@ builder.Host.ConfigureServices((context, services) =>
services.AddResponseCaching();
services.AddControllers();
services.AddEndpointsApiExplorer();
- builder.Services.AddSwagger(builder.Configuration, "Core.Cerberos.Service.API.xml", authSettings);
+ builder.Services.AddSwagger(builder.Configuration, "Core.Thalos.Service.API.xml", authSettings);
builder.Services.AddVersioning(builder.Configuration);
services.AddLogging();
services.AddProblemDetails();
diff --git a/Core.Cerberos.Service.API/Properties/launchSettings.json b/Core.Thalos.Service.API/Properties/launchSettings.json
similarity index 100%
rename from Core.Cerberos.Service.API/Properties/launchSettings.json
rename to Core.Thalos.Service.API/Properties/launchSettings.json
diff --git a/Core.Thalos.Service.API/Thalos.Service.API.http b/Core.Thalos.Service.API/Thalos.Service.API.http
new file mode 100644
index 0000000..cbebea7
--- /dev/null
+++ b/Core.Thalos.Service.API/Thalos.Service.API.http
@@ -0,0 +1,6 @@
+@Core.Thalos.Service.API_HostAddress = http://localhost:5145
+
+GET {{Core.Thalos.Service.API_HostAddress}}/weatherforecast/
+Accept: application/json
+
+###
diff --git a/Core.Cerberos.Service.API/appsettings.Development.json b/Core.Thalos.Service.API/appsettings.Development.json
similarity index 100%
rename from Core.Cerberos.Service.API/appsettings.Development.json
rename to Core.Thalos.Service.API/appsettings.Development.json
diff --git a/Core.Cerberos.Service.API/appsettings.Local.json b/Core.Thalos.Service.API/appsettings.Local.json
similarity index 77%
rename from Core.Cerberos.Service.API/appsettings.Local.json
rename to Core.Thalos.Service.API/appsettings.Local.json
index 25ca5e4..d5a550b 100644
--- a/Core.Cerberos.Service.API/appsettings.Local.json
+++ b/Core.Thalos.Service.API/appsettings.Local.json
@@ -7,6 +7,6 @@
},
"AllowedHosts": "*",
"LocalGateways": {
- "CerberosDAL": "https://localhost:7031/api"
+ "ThalosDAL": "https://localhost:7031/api"
}
}
diff --git a/Core.Cerberos.Service.API/appsettings.json b/Core.Thalos.Service.API/appsettings.json
similarity index 100%
rename from Core.Cerberos.Service.API/appsettings.json
rename to Core.Thalos.Service.API/appsettings.json
diff --git a/Core.Cerberos.Service.API/sample.settings.Development.json b/Core.Thalos.Service.API/sample.settings.Development.json
similarity index 87%
rename from Core.Cerberos.Service.API/sample.settings.Development.json
rename to Core.Thalos.Service.API/sample.settings.Development.json
index 3d612f0..899fcb3 100644
--- a/Core.Cerberos.Service.API/sample.settings.Development.json
+++ b/Core.Thalos.Service.API/sample.settings.Development.json
@@ -1,6 +1,6 @@
{
"Gateways": {
- "CerberosDAL": "" // Data access layer endpoint
+ "ThalosDAL": "" // Data access layer endpoint
},
"ConnectionStrings": {
"KeyVault": "" //KeyVault Uri
@@ -17,11 +17,11 @@
"CallbackPath": "", // Path for redirect after authentication
"Scopes": "" // Access scopes for user permissions
},
- "HeathCerberosApp": {
+ "ThalosApp": {
"AuthorizationUrl": "", // URL for authorization endpoint (STORED IN KEY VAULT)
"TokenUrl": "", // URL for token endpoint (STORED IN KEY VAULT)
"Scope": "", // Scope for application permissions (STORED IN KEY VAULT)
- "ClientId": "" // Client ID for Cerberos application (STORED IN KEY VAULT)
+ "ClientId": "" // Client ID for Thalos application (STORED IN KEY VAULT)
},
"MicrosoftGraph": {
"Scopes": "", // Scopes for Microsoft Graph API access