reeplace cerberos by talos

This commit is contained in:
Sergio Matias Urquin
2025-05-18 19:11:08 -06:00
parent f05d1a4b7e
commit 24efe5612c
45 changed files with 173 additions and 174 deletions

6
.gitignore vendored
View File

@@ -350,6 +350,6 @@ ASALocalRun/
# Local History for Visual Studio # Local History for Visual Studio
.localhistory/ .localhistory/
/Core.Cerberos.DAL.API/CerberosDALSettings.development.json /Core.Thalos.DAL.API/ThalosDALSettings.development.json
/Core.Cerberos.DAL.API/cerberosprivkey.pem /Core.Thalos.DAL.API/thalosprivkey.pem
/Core.Cerberos.DAL.API/cerberospubkey.pem /Core.Thalos.DAL.API/thalospubkey.pem

View File

@@ -1,6 +0,0 @@
@Core.Cerberos.DAL.API_HostAddress = http://localhost:5211
GET {{Core.Cerberos.DAL.API_HostAddress}}/weatherforecast/
Accept: application/json
###

View File

@@ -3,15 +3,15 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17 # Visual Studio Version 17
VisualStudioVersion = 17.10.35027.167 VisualStudioVersion = 17.10.35027.167
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Core.Cerberos.DAL.API", "Core.Cerberos.DAL.API\Core.Cerberos.DAL.API.csproj", "{F00B4683-03B3-487A-9608-4B30675AA278}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Core.Thalos.DAL.API", "Core.Thalos.DAL.API\Core.Thalos.DAL.API.csproj", "{F00B4683-03B3-487A-9608-4B30675AA278}"
EndProject EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Application", "Application", "{2E7D918E-AB9F-44BF-A334-FD675C9B626E}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Application", "Application", "{2E7D918E-AB9F-44BF-A334-FD675C9B626E}"
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Core.Cerberos.Domain", "Core.Cerberos.Domain\Core.Cerberos.Domain.csproj", "{BE8E05D6-05B2-4317-B619-21853B7D21DB}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Core.Thalos.Domain", "Core.Thalos.Domain\Core.Thalos.Domain.csproj", "{BE8E05D6-05B2-4317-B619-21853B7D21DB}"
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Core.Cerberos.Infrastructure", "Core.Cerberos.Infraestructure\Core.Cerberos.Infrastructure.csproj", "{43BD5F47-132F-4E78-83F1-A1FEED01A502}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Core.Thalos.Infrastructure", "Core.Thalos.Infraestructure\Core.Thalos.Infrastructure.csproj", "{43BD5F47-132F-4E78-83F1-A1FEED01A502}"
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Core.Cerberos.Provider", "Core.Cerberos.Provider\Core.Cerberos.Provider.csproj", "{8CAE8380-475F-46B8-AF90-C495AAC58606}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Core.Thalos.Provider", "Core.Thalos.Provider\Core.Thalos.Provider.csproj", "{8CAE8380-475F-46B8-AF90-C495AAC58606}"
EndProject EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Presentation", "Presentation", "{36839283-6407-476A-BB33-F0EE90383E2B}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Presentation", "Presentation", "{36839283-6407-476A-BB33-F0EE90383E2B}"
EndProject EndProject

View File

@@ -5,12 +5,12 @@
// *********************************************************************** // ***********************************************************************
using Asp.Versioning; using Asp.Versioning;
using Core.Cerberos.Adapters; using Core.Thalos.Adapters;
using Core.Cerberos.Adapters.Attributes; using Core.Thalos.Adapters.Attributes;
using Core.Cerberos.Adapters.Common.Constants; using Core.Thalos.Adapters.Common.Constants;
using Core.Cerberos.Adapters.Common.Enums; using Core.Thalos.Adapters.Common.Enums;
using Core.Cerberos.Domain.Contexts.Onboarding.Request; using Core.Thalos.Domain.Contexts.Onboarding.Request;
using Core.Cerberos.Provider.Contracts; using Core.Thalos.Provider.Contracts;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
@@ -37,7 +37,7 @@ namespace LSA.Core.Kerberos.API.Controllers
[Consumes(MimeTypes.ApplicationJson)] [Consumes(MimeTypes.ApplicationJson)]
[Produces(MimeTypes.ApplicationJson)] [Produces(MimeTypes.ApplicationJson)]
[ProducesResponseType(typeof(IEnumerable<ModuleAdapter>), StatusCodes.Status200OK)] [ProducesResponseType(typeof(IEnumerable<ModuleAdapter>), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("ModuleManagement.Read, RoleManagement.Read")] [Permission("ModuleManagement.Read, RoleManagement.Read")]
public async Task<IActionResult> GetAllModulesAsync() public async Task<IActionResult> GetAllModulesAsync()
{ {
@@ -67,7 +67,7 @@ namespace LSA.Core.Kerberos.API.Controllers
[Consumes(MimeTypes.ApplicationJson)] [Consumes(MimeTypes.ApplicationJson)]
[Produces(MimeTypes.ApplicationJson)] [Produces(MimeTypes.ApplicationJson)]
[ProducesResponseType(typeof(IEnumerable<ModuleAdapter>), StatusCodes.Status200OK)] [ProducesResponseType(typeof(IEnumerable<ModuleAdapter>), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("ModuleManagement.Read")] [Permission("ModuleManagement.Read")]
public async Task<IActionResult> GetAllModulesByList([FromBody] string[] modules) public async Task<IActionResult> GetAllModulesByList([FromBody] string[] modules)
{ {
@@ -108,7 +108,7 @@ namespace LSA.Core.Kerberos.API.Controllers
[Consumes(MimeTypes.ApplicationJson)] [Consumes(MimeTypes.ApplicationJson)]
[Produces(MimeTypes.ApplicationJson)] [Produces(MimeTypes.ApplicationJson)]
[ProducesResponseType(typeof(ModuleAdapter), StatusCodes.Status200OK)] [ProducesResponseType(typeof(ModuleAdapter), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("ModuleManagement.Read")] [Permission("ModuleManagement.Read")]
public async Task<IActionResult> GetModuleByIdAsync([FromRoute] string id) public async Task<IActionResult> GetModuleByIdAsync([FromRoute] string id)
{ {
@@ -137,7 +137,7 @@ namespace LSA.Core.Kerberos.API.Controllers
/// <response code="500">The service internal e|ror.</response> /// <response code="500">The service internal e|ror.</response>
[HttpPost] [HttpPost]
[ProducesResponseType(typeof(ModuleAdapter), StatusCodes.Status201Created)] [ProducesResponseType(typeof(ModuleAdapter), StatusCodes.Status201Created)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("ModuleManagement.Write")] [Permission("ModuleManagement.Write")]
public async Task<IActionResult> CreateModuleAsync([FromBody] ModuleRequest newModule) public async Task<IActionResult> CreateModuleAsync([FromBody] ModuleRequest newModule)
{ {
@@ -168,7 +168,7 @@ namespace LSA.Core.Kerberos.API.Controllers
[Consumes(MimeTypes.ApplicationJson)] [Consumes(MimeTypes.ApplicationJson)]
[Produces(MimeTypes.ApplicationJson)] [Produces(MimeTypes.ApplicationJson)]
[ProducesResponseType(typeof(ModuleAdapter), StatusCodes.Status200OK)] [ProducesResponseType(typeof(ModuleAdapter), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("ModuleManagement.Write")] [Permission("ModuleManagement.Write")]
public async Task<IActionResult> UpdateModuleAsync(ModuleAdapter entity, string id) public async Task<IActionResult> UpdateModuleAsync(ModuleAdapter entity, string id)
{ {
@@ -200,7 +200,7 @@ namespace LSA.Core.Kerberos.API.Controllers
[Consumes(MimeTypes.ApplicationJson)] [Consumes(MimeTypes.ApplicationJson)]
[Produces(MimeTypes.ApplicationJson)] [Produces(MimeTypes.ApplicationJson)]
[ProducesResponseType(typeof(ModuleAdapter), StatusCodes.Status200OK)] [ProducesResponseType(typeof(ModuleAdapter), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("ModuleManagement.Write")] [Permission("ModuleManagement.Write")]
public async Task<IActionResult> ChangeModuleStatus([FromRoute] string id, [FromRoute] StatusEnum newStatus) public async Task<IActionResult> ChangeModuleStatus([FromRoute] string id, [FromRoute] StatusEnum newStatus)
{ {

View File

@@ -5,12 +5,12 @@
// *********************************************************************** // ***********************************************************************
using Asp.Versioning; using Asp.Versioning;
using Core.Cerberos.Adapters; using Core.Thalos.Adapters;
using Core.Cerberos.Adapters.Attributes; using Core.Thalos.Adapters.Attributes;
using Core.Cerberos.Adapters.Common.Constants; using Core.Thalos.Adapters.Common.Constants;
using Core.Cerberos.Adapters.Common.Enums; using Core.Thalos.Adapters.Common.Enums;
using Core.Cerberos.Domain.Contexts.Onboarding.Request; using Core.Thalos.Domain.Contexts.Onboarding.Request;
using Core.Cerberos.Provider.Contracts; using Core.Thalos.Provider.Contracts;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
@@ -37,7 +37,7 @@ namespace LSA.Core.Kerberos.API.Controllers
[Consumes(MimeTypes.ApplicationJson)] [Consumes(MimeTypes.ApplicationJson)]
[Produces(MimeTypes.ApplicationJson)] [Produces(MimeTypes.ApplicationJson)]
[ProducesResponseType(typeof(IEnumerable<PermissionAdapter>), StatusCodes.Status200OK)] [ProducesResponseType(typeof(IEnumerable<PermissionAdapter>), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("PermissionManagement.Read, RoleManagement.Read")] [Permission("PermissionManagement.Read, RoleManagement.Read")]
public async Task<IActionResult> GetAllPermissionsAsync() public async Task<IActionResult> GetAllPermissionsAsync()
{ {
@@ -67,7 +67,7 @@ namespace LSA.Core.Kerberos.API.Controllers
[Consumes(MimeTypes.ApplicationJson)] [Consumes(MimeTypes.ApplicationJson)]
[Produces(MimeTypes.ApplicationJson)] [Produces(MimeTypes.ApplicationJson)]
[ProducesResponseType(typeof(IEnumerable<PermissionAdapter>), StatusCodes.Status200OK)] [ProducesResponseType(typeof(IEnumerable<PermissionAdapter>), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("PermissionManagement.Read")] [Permission("PermissionManagement.Read")]
public async Task<IActionResult> GetAllPermissionsByList([FromBody] string[] permissions) public async Task<IActionResult> GetAllPermissionsByList([FromBody] string[] permissions)
{ {
@@ -107,7 +107,7 @@ namespace LSA.Core.Kerberos.API.Controllers
[Consumes(MimeTypes.ApplicationJson)] [Consumes(MimeTypes.ApplicationJson)]
[Produces(MimeTypes.ApplicationJson)] [Produces(MimeTypes.ApplicationJson)]
[ProducesResponseType(typeof(PermissionAdapter), StatusCodes.Status200OK)] [ProducesResponseType(typeof(PermissionAdapter), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("PermissionManagement.Read")] [Permission("PermissionManagement.Read")]
public async Task<IActionResult> GetPermissionByIdAsync([FromRoute] string id) public async Task<IActionResult> GetPermissionByIdAsync([FromRoute] string id)
{ {
@@ -136,7 +136,7 @@ namespace LSA.Core.Kerberos.API.Controllers
/// <response code="500">The service internal e|ror.</response> /// <response code="500">The service internal e|ror.</response>
[HttpPost] [HttpPost]
[ProducesResponseType(typeof(PermissionAdapter), StatusCodes.Status201Created)] [ProducesResponseType(typeof(PermissionAdapter), StatusCodes.Status201Created)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("PermissionManagement.Write")] [Permission("PermissionManagement.Write")]
public async Task<IActionResult> CreatePermissionAsync([FromBody] PermissionRequest newPermission) public async Task<IActionResult> CreatePermissionAsync([FromBody] PermissionRequest newPermission)
{ {
@@ -167,7 +167,7 @@ namespace LSA.Core.Kerberos.API.Controllers
[Consumes(MimeTypes.ApplicationJson)] [Consumes(MimeTypes.ApplicationJson)]
[Produces(MimeTypes.ApplicationJson)] [Produces(MimeTypes.ApplicationJson)]
[ProducesResponseType(typeof(PermissionAdapter), StatusCodes.Status200OK)] [ProducesResponseType(typeof(PermissionAdapter), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("PermissionManagement.Write")] [Permission("PermissionManagement.Write")]
public async Task<IActionResult> UpdatePermissionAsync(PermissionAdapter entity, string id) public async Task<IActionResult> UpdatePermissionAsync(PermissionAdapter entity, string id)
{ {
@@ -199,7 +199,7 @@ namespace LSA.Core.Kerberos.API.Controllers
[Consumes(MimeTypes.ApplicationJson)] [Consumes(MimeTypes.ApplicationJson)]
[Produces(MimeTypes.ApplicationJson)] [Produces(MimeTypes.ApplicationJson)]
[ProducesResponseType(typeof(PermissionAdapter), StatusCodes.Status200OK)] [ProducesResponseType(typeof(PermissionAdapter), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("PermissionManagement.Write")] [Permission("PermissionManagement.Write")]
public async Task<IActionResult> ChangePermissionStatus([FromRoute] string id, [FromRoute] StatusEnum newStatus) public async Task<IActionResult> ChangePermissionStatus([FromRoute] string id, [FromRoute] StatusEnum newStatus)
{ {

View File

@@ -4,12 +4,12 @@
// </copyright> // </copyright>
// *********************************************************************** // ***********************************************************************
using Asp.Versioning; using Asp.Versioning;
using Core.Cerberos.Adapters; using Core.Thalos.Adapters;
using Core.Cerberos.Adapters.Attributes; using Core.Thalos.Adapters.Attributes;
using Core.Cerberos.Adapters.Common.Constants; using Core.Thalos.Adapters.Common.Constants;
using Core.Cerberos.Adapters.Common.Enums; using Core.Thalos.Adapters.Common.Enums;
using Core.Cerberos.Domain.Contexts.Onboarding.Request; using Core.Thalos.Domain.Contexts.Onboarding.Request;
using Core.Cerberos.Provider.Contracts; using Core.Thalos.Provider.Contracts;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
@@ -34,7 +34,7 @@ namespace LSA.Core.Kerberos.API.Controllers
/// <response code="500">The service internal error.</response> /// <response code="500">The service internal error.</response>
[HttpGet] [HttpGet]
[ProducesResponseType(typeof(IEnumerable<RoleAdapter>), StatusCodes.Status200OK)] [ProducesResponseType(typeof(IEnumerable<RoleAdapter>), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("RoleManagement.Read")] [Permission("RoleManagement.Read")]
public async Task<IActionResult> GetAllRolesAsync() public async Task<IActionResult> GetAllRolesAsync()
{ {
@@ -62,7 +62,7 @@ namespace LSA.Core.Kerberos.API.Controllers
[HttpGet] [HttpGet]
[Route(Routes.Id)] [Route(Routes.Id)]
[ProducesResponseType(typeof(RoleAdapter), StatusCodes.Status200OK)] [ProducesResponseType(typeof(RoleAdapter), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("RoleManagement.Read")] [Permission("RoleManagement.Read")]
public async Task<IActionResult> GetRoleByIdAsync([FromRoute] string id) public async Task<IActionResult> GetRoleByIdAsync([FromRoute] string id)
{ {
@@ -91,7 +91,7 @@ namespace LSA.Core.Kerberos.API.Controllers
/// <response code="500">The service internal error.</response> /// <response code="500">The service internal error.</response>
[HttpPost] [HttpPost]
[ProducesResponseType(typeof(RoleAdapter), StatusCodes.Status201Created)] [ProducesResponseType(typeof(RoleAdapter), StatusCodes.Status201Created)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("RoleManagement.Write")] [Permission("RoleManagement.Write")]
public async Task<IActionResult> CreateRoleAsync([FromBody] RoleRequest newRole) public async Task<IActionResult> CreateRoleAsync([FromBody] RoleRequest newRole)
{ {
@@ -121,7 +121,7 @@ namespace LSA.Core.Kerberos.API.Controllers
[HttpPut] [HttpPut]
[Route(Routes.Id)] [Route(Routes.Id)]
[ProducesResponseType(typeof(RoleAdapter), StatusCodes.Status200OK)] [ProducesResponseType(typeof(RoleAdapter), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("RoleManagement.Write")] [Permission("RoleManagement.Write")]
public async Task<IActionResult> UpdateRoleAsync([FromBody] RoleAdapter entity, [FromRoute] string id) public async Task<IActionResult> UpdateRoleAsync([FromBody] RoleAdapter entity, [FromRoute] string id)
{ {
@@ -151,7 +151,7 @@ namespace LSA.Core.Kerberos.API.Controllers
[HttpPatch] [HttpPatch]
[Route(Routes.ChangeStatus)] [Route(Routes.ChangeStatus)]
[ProducesResponseType(typeof(RoleAdapter), StatusCodes.Status200OK)] [ProducesResponseType(typeof(RoleAdapter), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("RoleManagement.Write")] [Permission("RoleManagement.Write")]
public async Task<IActionResult> ChangeRoleStatus([FromRoute] string id, [FromRoute] StatusEnum newStatus) public async Task<IActionResult> ChangeRoleStatus([FromRoute] string id, [FromRoute] StatusEnum newStatus)
{ {
@@ -181,7 +181,7 @@ namespace LSA.Core.Kerberos.API.Controllers
/// <response code="500">The service internal error.</response> /// <response code="500">The service internal error.</response>
[HttpPost(Routes.AddApplication)] [HttpPost(Routes.AddApplication)]
[ProducesResponseType(typeof(RoleAdapter), StatusCodes.Status200OK)] [ProducesResponseType(typeof(RoleAdapter), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("RoleManagement.Write")] [Permission("RoleManagement.Write")]
public async Task<IActionResult> AddApplicationToRoleAsync([FromRoute] string roleId, public async Task<IActionResult> AddApplicationToRoleAsync([FromRoute] string roleId,
[FromRoute] ApplicationsEnum application) [FromRoute] ApplicationsEnum application)
@@ -211,7 +211,7 @@ namespace LSA.Core.Kerberos.API.Controllers
/// <response code="500">The service internal error.</response> /// <response code="500">The service internal error.</response>
[HttpDelete(Routes.RemoveApplication)] [HttpDelete(Routes.RemoveApplication)]
[ProducesResponseType(typeof(RoleAdapter), StatusCodes.Status200OK)] [ProducesResponseType(typeof(RoleAdapter), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("RoleManagement.Write")] [Permission("RoleManagement.Write")]
public async Task<IActionResult> RemoveApplicationFromRoleAsync([FromRoute] string roleId, public async Task<IActionResult> RemoveApplicationFromRoleAsync([FromRoute] string roleId,
[FromRoute] ApplicationsEnum application) [FromRoute] ApplicationsEnum application)

View File

@@ -5,15 +5,15 @@
// *********************************************************************** // ***********************************************************************
using Asp.Versioning; using Asp.Versioning;
using Core.Blueprint.Storage.Adapters; using Core.Blueprint.Storage.Adapters;
using Core.Cerberos.Adapters; using Core.Thalos.Adapters;
using Core.Cerberos.Adapters.Attributes; using Core.Thalos.Adapters.Attributes;
using Core.Cerberos.Adapters.Common.Constants; using Core.Thalos.Adapters.Common.Constants;
using Core.Cerberos.Adapters.Common.Enums; using Core.Thalos.Adapters.Common.Enums;
using Core.Cerberos.Provider.Contracts; using Core.Thalos.Provider.Contracts;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.Graph; using Microsoft.Graph;
using UserRequest = Core.Cerberos.Domain.Contexts.Onboarding.Request.UserRequest; using UserRequest = Core.Thalos.Domain.Contexts.Onboarding.Request.UserRequest;
namespace LSA.Core.Kerberos.API.Controllers namespace LSA.Core.Kerberos.API.Controllers
{ {
@@ -36,7 +36,7 @@ namespace LSA.Core.Kerberos.API.Controllers
/// <response code="500">The service internal error.</response> /// <response code="500">The service internal error.</response>
[HttpGet] [HttpGet]
[ProducesResponseType(typeof(IEnumerable<UserAdapter>), StatusCodes.Status200OK)] [ProducesResponseType(typeof(IEnumerable<UserAdapter>), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("UserManagement.Read")] [Permission("UserManagement.Read")]
public async Task<IActionResult> GetAllUsersService() public async Task<IActionResult> GetAllUsersService()
{ {
@@ -64,7 +64,7 @@ namespace LSA.Core.Kerberos.API.Controllers
[HttpGet] [HttpGet]
[Route(Routes.Id)] [Route(Routes.Id)]
[ProducesResponseType(typeof(UserAdapter), StatusCodes.Status200OK)] [ProducesResponseType(typeof(UserAdapter), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("UserManagement.Read")] [Permission("UserManagement.Read")]
public async Task<IActionResult> GetUserByIdService([FromRoute] string id) public async Task<IActionResult> GetUserByIdService([FromRoute] string id)
{ {
@@ -94,7 +94,7 @@ namespace LSA.Core.Kerberos.API.Controllers
[HttpGet] [HttpGet]
[Route(Routes.Email)] [Route(Routes.Email)]
[ProducesResponseType(typeof(UserAdapter), StatusCodes.Status200OK)] [ProducesResponseType(typeof(UserAdapter), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = $"{Schemes.HeathScheme}, {Schemes.AzureScheme}")] [Authorize(AuthenticationSchemes = $"{Schemes.DefaultScheme}, {Schemes.AzureScheme}")]
public async Task<IActionResult> GetUserByEmail([FromRoute] string email) public async Task<IActionResult> GetUserByEmail([FromRoute] string email)
{ {
try try
@@ -155,7 +155,7 @@ namespace LSA.Core.Kerberos.API.Controllers
/// <response code="500">The service internal error.</response> /// <response code="500">The service internal error.</response>
[HttpPost(Routes.Register)] [HttpPost(Routes.Register)]
[ProducesResponseType(typeof(UserAdapter), StatusCodes.Status201Created)] [ProducesResponseType(typeof(UserAdapter), StatusCodes.Status201Created)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("UserManagement.Write")] [Permission("UserManagement.Write")]
public async Task<IActionResult> CreateUserAsync([FromBody] UserRequest newUser, [FromRoute] bool sendInvitation) public async Task<IActionResult> CreateUserAsync([FromBody] UserRequest newUser, [FromRoute] bool sendInvitation)
{ {
@@ -190,7 +190,7 @@ namespace LSA.Core.Kerberos.API.Controllers
[HttpPut] [HttpPut]
[Route(Routes.Id)] [Route(Routes.Id)]
[ProducesResponseType(typeof(UserAdapter), StatusCodes.Status200OK)] [ProducesResponseType(typeof(UserAdapter), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("UserManagement.Write")] [Permission("UserManagement.Write")]
public async Task<IActionResult> UpdateUserAsync([FromBody] UserAdapter entity, [FromRoute] string id) public async Task<IActionResult> UpdateUserAsync([FromBody] UserAdapter entity, [FromRoute] string id)
{ {
@@ -218,7 +218,7 @@ namespace LSA.Core.Kerberos.API.Controllers
/// <response code="500">The service internal error.</response> /// <response code="500">The service internal error.</response>
[HttpPatch(Routes.LogIn)] [HttpPatch(Routes.LogIn)]
[ProducesResponseType(typeof(UserAdapter), StatusCodes.Status200OK)] [ProducesResponseType(typeof(UserAdapter), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = $"{Schemes.HeathScheme}, {Schemes.AzureScheme}")] [Authorize(AuthenticationSchemes = $"{Schemes.DefaultScheme}, {Schemes.AzureScheme}")]
public async Task<IActionResult> LoginUserAsync([FromRoute] string email) public async Task<IActionResult> LoginUserAsync([FromRoute] string email)
{ {
try try
@@ -247,7 +247,7 @@ namespace LSA.Core.Kerberos.API.Controllers
/// <response code="500">The service internal error.</response> /// <response code="500">The service internal error.</response>
[HttpPatch(Routes.LogOut)] [HttpPatch(Routes.LogOut)]
[ProducesResponseType(typeof(UserAdapter), StatusCodes.Status200OK)] [ProducesResponseType(typeof(UserAdapter), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = $"{Schemes.HeathScheme}, {Schemes.AzureScheme}")] [Authorize(AuthenticationSchemes = $"{Schemes.DefaultScheme}, {Schemes.AzureScheme}")]
public async Task<IActionResult> LogOutUserSessionAsync([FromRoute] string email) public async Task<IActionResult> LogOutUserSessionAsync([FromRoute] string email)
{ {
try try
@@ -277,7 +277,7 @@ namespace LSA.Core.Kerberos.API.Controllers
[HttpPatch] [HttpPatch]
[Route(Routes.ChangeStatus)] [Route(Routes.ChangeStatus)]
[ProducesResponseType(typeof(UserAdapter), StatusCodes.Status200OK)] [ProducesResponseType(typeof(UserAdapter), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("UserManagement.Write")] [Permission("UserManagement.Write")]
public async Task<IActionResult> ChangeUserStatus([FromRoute] string id, [FromRoute] StatusEnum newStatus) public async Task<IActionResult> ChangeUserStatus([FromRoute] string id, [FromRoute] StatusEnum newStatus)
{ {
@@ -306,7 +306,7 @@ namespace LSA.Core.Kerberos.API.Controllers
[HttpPost] [HttpPost]
[Route(Routes.AddCompany)] [Route(Routes.AddCompany)]
[ProducesResponseType(typeof(UserAdapter), StatusCodes.Status200OK)] [ProducesResponseType(typeof(UserAdapter), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("UserManagement.Write")] [Permission("UserManagement.Write")]
public async Task<IActionResult> AddCompanyToUserAsync([FromRoute] string userId, [FromRoute] string companyId) public async Task<IActionResult> AddCompanyToUserAsync([FromRoute] string userId, [FromRoute] string companyId)
{ {
@@ -335,7 +335,7 @@ namespace LSA.Core.Kerberos.API.Controllers
[HttpDelete] [HttpDelete]
[Route(Routes.RemoveCompany)] [Route(Routes.RemoveCompany)]
[ProducesResponseType(typeof(UserAdapter), StatusCodes.Status200OK)] [ProducesResponseType(typeof(UserAdapter), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("UserManagement.Write")] [Permission("UserManagement.Write")]
public async Task<IActionResult> RemoveCompanyFromUserAsync([FromRoute] string userId, [FromRoute] string companyId) public async Task<IActionResult> RemoveCompanyFromUserAsync([FromRoute] string userId, [FromRoute] string companyId)
{ {
@@ -364,7 +364,7 @@ namespace LSA.Core.Kerberos.API.Controllers
[HttpPost] [HttpPost]
[Route(Routes.AddProject)] [Route(Routes.AddProject)]
[ProducesResponseType(typeof(UserAdapter), StatusCodes.Status200OK)] [ProducesResponseType(typeof(UserAdapter), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("UserManagement.Write")] [Permission("UserManagement.Write")]
public async Task<IActionResult> AddProjectToUserAsync([FromRoute] string userId, [FromRoute] string projectId) public async Task<IActionResult> AddProjectToUserAsync([FromRoute] string userId, [FromRoute] string projectId)
{ {
@@ -393,7 +393,7 @@ namespace LSA.Core.Kerberos.API.Controllers
[HttpDelete] [HttpDelete]
[Route(Routes.RemoveProject)] [Route(Routes.RemoveProject)]
[ProducesResponseType(typeof(UserAdapter), StatusCodes.Status200OK)] [ProducesResponseType(typeof(UserAdapter), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = Schemes.HeathScheme)] [Authorize(AuthenticationSchemes = Schemes.DefaultScheme)]
[Permission("UserManagement.Write")] [Permission("UserManagement.Write")]
public async Task<IActionResult> RemoveProjectFromUserAsync([FromRoute] string userId, [FromRoute] string projectId) public async Task<IActionResult> RemoveProjectFromUserAsync([FromRoute] string userId, [FromRoute] string projectId)
{ {
@@ -421,7 +421,7 @@ namespace LSA.Core.Kerberos.API.Controllers
[HttpGet] [HttpGet]
[Route("{email}/GetTokenAdapter")] [Route("{email}/GetTokenAdapter")]
[ProducesResponseType(typeof(TokenAdapter), StatusCodes.Status200OK)] [ProducesResponseType(typeof(TokenAdapter), StatusCodes.Status200OK)]
[Authorize(AuthenticationSchemes = $"{Schemes.HeathScheme}, {Schemes.AzureScheme}")] [Authorize(AuthenticationSchemes = $"{Schemes.DefaultScheme}, {Schemes.AzureScheme}")]
public async Task<IActionResult> GetTokenAdapter([FromRoute] string email) public async Task<IActionResult> GetTokenAdapter([FromRoute] string email)
{ {
try try

View File

@@ -0,0 +1,6 @@
@Core.Thalos.DAL.API_HostAddress = http://localhost:5211
GET {{Core.Thalos.DAL.API_HostAddress}}/weatherforecast/
Accept: application/json
###

View File

@@ -16,12 +16,11 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Blueprint.Logging" Version="0.0.1" /> <PackageReference Include="Blueprint.Logging" Version="0.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.AzureAppConfiguration" Version="8.0.0" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Core.Cerberos.Domain\Core.Cerberos.Domain.csproj" /> <ProjectReference Include="..\Core.Thalos.Domain\Core.Thalos.Domain.csproj" />
<ProjectReference Include="..\Core.Cerberos.Provider\Core.Cerberos.Provider.csproj" /> <ProjectReference Include="..\Core.Thalos.Provider\Core.Thalos.Provider.csproj" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@@ -1,7 +1,7 @@
using Core.Blueprint.Logging.Configuration; using Core.Blueprint.Logging.Configuration;
using Core.Cerberos.Adapters.Extensions; using Core.Thalos.Adapters.Extensions;
using Core.Cerberos.Adapters.Helpers; using Core.Thalos.Adapters.Helpers;
using Core.Cerberos.Provider; using Core.Thalos.Provider;
using Microsoft.AspNetCore.RateLimiting; using Microsoft.AspNetCore.RateLimiting;
using Microsoft.AspNetCore.ResponseCompression; using Microsoft.AspNetCore.ResponseCompression;
using System.IO.Compression; using System.IO.Compression;
@@ -10,7 +10,7 @@ using System.Threading.RateLimiting;
var builder = WebApplication.CreateBuilder(args); var builder = WebApplication.CreateBuilder(args);
var authSettings = AuthHelper.GetAuthSettings(builder, "cerberos_dal"); var authSettings = AuthHelper.GetAuthSettings(builder, "thalos_dal");
builder.Services.ConfigureAuthentication(builder.Configuration, authSettings); builder.Services.ConfigureAuthentication(builder.Configuration, authSettings);
@@ -70,7 +70,7 @@ builder.Services.AddRateLimiter(_ => _
builder.Services.AddResponseCaching(); builder.Services.AddResponseCaching();
builder.Services.AddControllers(); builder.Services.AddControllers();
builder.Services.AddEndpointsApiExplorer(); builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwagger(builder.Configuration, "Core.Cerberos.DAL.API.xml", authSettings); builder.Services.AddSwagger(builder.Configuration, "Core.Thalos.DAL.API.xml", authSettings);
builder.Services.AddVersioning(builder.Configuration); builder.Services.AddVersioning(builder.Configuration);
builder.Services.AddLogging(); builder.Services.AddLogging();
builder.Services.AddProblemDetails(); builder.Services.AddProblemDetails();

View File

@@ -5,7 +5,7 @@
"KeyVault": "" //KeyVault Uri "KeyVault": "" //KeyVault Uri
}, },
"MongoDb": { "MongoDb": {
"DatabaseName": "Cerberos" "DatabaseName": "Thalos"
}, },
"CacheSettings": { "CacheSettings": {
"DefaultCacheDurationInMinutes": 3 // Default cache duration set to 3 minutes "DefaultCacheDurationInMinutes": 3 // Default cache duration set to 3 minutes
@@ -22,7 +22,7 @@
"CallbackPath": "", // Path for redirect after authentication "CallbackPath": "", // Path for redirect after authentication
"Scopes": "" // Access scopes for user permissions "Scopes": "" // Access scopes for user permissions
}, },
"HeathCerberosApp": { "ThalosApp": {
"AuthorizationUrl": "", // URL for authorization endpoint (STORED IN KEY VAULT) "AuthorizationUrl": "", // URL for authorization endpoint (STORED IN KEY VAULT)
"TokenUrl": "", // URL for token endpoint (STORED IN KEY VAULT) "TokenUrl": "", // URL for token endpoint (STORED IN KEY VAULT)
"Scope": "", // Scope for application permissions (STORED IN KEY VAULT) "Scope": "", // Scope for application permissions (STORED IN KEY VAULT)

View File

@@ -1,14 +1,14 @@
// *********************************************************************** // ***********************************************************************
// <copyright file="ModuleMapper.cs"> // <copyright file="ModuleMapper.cs">
// HEATH // AgileWebs
// </copyright> // </copyright>
// *********************************************************************** // ***********************************************************************
using Core.Cerberos.Adapters; using Core.Thalos.Adapters;
using Core.Cerberos.Domain.Contexts.Onboarding.Request; using Core.Thalos.Domain.Contexts.Onboarding.Request;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using MongoDB.Bson; using MongoDB.Bson;
using System.Security.Claims; using System.Security.Claims;
namespace Core.Cerberos.Domain.Contexts.Onboarding.Mappers namespace Core.Thalos.Domain.Contexts.Onboarding.Mappers
{ {
/// <summary> /// <summary>
/// Handles mappings between /// Handles mappings between

View File

@@ -1,14 +1,14 @@
// *********************************************************************** // ***********************************************************************
// <copyright file="PermissionMapper.cs"> // <copyright file="PermissionMapper.cs">
// HEATH // AgileWebs
// </copyright> // </copyright>
// *********************************************************************** // ***********************************************************************
using Core.Cerberos.Adapters; using Core.Thalos.Adapters;
using Core.Cerberos.Domain.Contexts.Onboarding.Request; using Core.Thalos.Domain.Contexts.Onboarding.Request;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using MongoDB.Bson; using MongoDB.Bson;
using System.Security.Claims; using System.Security.Claims;
namespace Core.Cerberos.Domain.Contexts.Onboarding.Mappers namespace Core.Thalos.Domain.Contexts.Onboarding.Mappers
{ {
/// <summary> /// <summary>
/// Handles mappings between /// Handles mappings between

View File

@@ -1,15 +1,15 @@
// *********************************************************************** // ***********************************************************************
// <copyright file="RoleMapper.cs"> // <copyright file="RoleMapper.cs">
// HEATH // AgileWebs
// </copyright> // </copyright>
// *********************************************************************** // ***********************************************************************
using Core.Cerberos.Adapters; using Core.Thalos.Adapters;
using Core.Cerberos.Domain.Contexts.Onboarding.Request; using Core.Thalos.Domain.Contexts.Onboarding.Request;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using MongoDB.Bson; using MongoDB.Bson;
using System.Security.Claims; using System.Security.Claims;
namespace Core.Cerberos.Domain.Contexts.Onboarding.Mappers namespace Core.Thalos.Domain.Contexts.Onboarding.Mappers
{ {
/// <summary> /// <summary>
/// Handles mappings between /// Handles mappings between

View File

@@ -1,15 +1,15 @@
// *********************************************************************** // ***********************************************************************
// <copyright file="UserMapper.cs"> // <copyright file="UserMapper.cs">
// HEATH // AgileWebs
// </copyright> // </copyright>
// *********************************************************************** // ***********************************************************************
using Core.Cerberos.Adapters; using Core.Thalos.Adapters;
using Core.Cerberos.Domain.Contexts.Onboarding.Request; using Core.Thalos.Domain.Contexts.Onboarding.Request;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using MongoDB.Bson; using MongoDB.Bson;
using System.Security.Claims; using System.Security.Claims;
namespace Core.Cerberos.Domain.Contexts.Onboarding.Mappers namespace Core.Thalos.Domain.Contexts.Onboarding.Mappers
{ {
/// <summary> /// <summary>
/// Handles mappings between /// Handles mappings between

View File

@@ -4,12 +4,12 @@
// </copyright> // </copyright>
// *********************************************************************** // ***********************************************************************
using Core.Cerberos.Adapters.Common.Enums; using Core.Thalos.Adapters.Common.Enums;
using MongoDB.Bson; using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes; using MongoDB.Bson.Serialization.Attributes;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Core.Cerberos.Domain.Contexts.Onboarding.Request namespace Core.Thalos.Domain.Contexts.Onboarding.Request
{ {
/// <summary> /// <summary>
/// Data transfer object (DTO) for adding modules. /// Data transfer object (DTO) for adding modules.

View File

@@ -4,12 +4,12 @@
// </copyright> // </copyright>
// *********************************************************************** // ***********************************************************************
using Core.Cerberos.Adapters.Common.Constants; using Core.Thalos.Adapters.Common.Constants;
using MongoDB.Bson; using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes; using MongoDB.Bson.Serialization.Attributes;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Core.Cerberos.Domain.Contexts.Onboarding.Request namespace Core.Thalos.Domain.Contexts.Onboarding.Request
{ {
/// <summary> /// <summary>
/// Data transfer object (DTO) for adding permissions. /// Data transfer object (DTO) for adding permissions.

View File

@@ -4,12 +4,12 @@
// </copyright> // </copyright>
// *********************************************************************** // ***********************************************************************
using Core.Cerberos.Adapters.Common.Enums; using Core.Thalos.Adapters.Common.Enums;
using MongoDB.Bson; using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes; using MongoDB.Bson.Serialization.Attributes;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Core.Cerberos.Domain.Contexts.Onboarding.Request namespace Core.Thalos.Domain.Contexts.Onboarding.Request
{ {
/// <summary> /// <summary>
/// Data transfer object (DTO) for adding a role. /// Data transfer object (DTO) for adding a role.

View File

@@ -8,7 +8,7 @@ using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes; using MongoDB.Bson.Serialization.Attributes;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Core.Cerberos.Domain.Contexts.Onboarding.Request namespace Core.Thalos.Domain.Contexts.Onboarding.Request
{ {
/// <summary> /// <summary>
/// Data transfer object (DTO) for adding a user. /// Data transfer object (DTO) for adding a user.

View File

@@ -7,7 +7,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Cerberos.Building.Blocks" Version="0.0.3" /> <PackageReference Include="Thalos.Building.Blocks" Version="0.0.1" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@@ -1,4 +1,4 @@
using Core.Cerberos.Infraestructure.Caching.Configs; using Core.Thalos.Infraestructure.Caching.Configs;
namespace LSA.Core.Dapper.Service.Caching namespace LSA.Core.Dapper.Service.Caching
{ {

View File

@@ -1,5 +1,5 @@
using Azure.Identity; using Azure.Identity;
using Core.Cerberos.Infraestructure.Caching.Contracts; using Core.Thalos.Infraestructure.Caching.Contracts;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using StackExchange.Redis; using StackExchange.Redis;
using System.Text.Json; using System.Text.Json;

View File

@@ -1,4 +1,4 @@
namespace Core.Cerberos.Infraestructure.Caching.Configs namespace Core.Thalos.Infraestructure.Caching.Configs
{ {
public class CacheSettings public class CacheSettings
{ {

View File

@@ -1,4 +1,4 @@
namespace Core.Cerberos.Infraestructure.Caching.Contracts namespace Core.Thalos.Infraestructure.Caching.Contracts
{ {
public interface ICacheService public interface ICacheService
{ {

View File

@@ -1,6 +1,6 @@
using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Configuration;
namespace Core.Cerberos.Infraestructure.Contexts.Mongo namespace Core.Thalos.Infraestructure.Contexts.Mongo
{ {
public class ConnectionStringProvider(IConfiguration configuration) : IConnectionStringProvider public class ConnectionStringProvider(IConfiguration configuration) : IConnectionStringProvider
{ {

View File

@@ -1,4 +1,4 @@
namespace Core.Cerberos.Infraestructure.Contexts.Mongo; namespace Core.Thalos.Infraestructure.Contexts.Mongo;
public interface IMongoConnSettings public interface IMongoConnSettings
{ {

View File

@@ -1,4 +1,4 @@
namespace Core.Cerberos.Infraestructure.PerformanceCacheService namespace Core.Thalos.Infraestructure.PerformanceCacheService
{ {
[AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = false)] [AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
public class CacheAttribute : Attribute public class CacheAttribute : Attribute

View File

@@ -3,11 +3,11 @@
// AgileWebs // AgileWebs
// </copyright> // </copyright>
// *********************************************************************** // ***********************************************************************
using Core.Cerberos.Adapters; using Core.Thalos.Adapters;
using Core.Cerberos.Adapters.Common.Enums; using Core.Thalos.Adapters.Common.Enums;
using Core.Cerberos.Domain.Contexts.Onboarding.Request; using Core.Thalos.Domain.Contexts.Onboarding.Request;
namespace Core.Cerberos.Provider.Contracts namespace Core.Thalos.Provider.Contracts
{ {
public interface IModuleService public interface IModuleService
{ {

View File

@@ -3,11 +3,11 @@
// AgileWebs // AgileWebs
// </copyright> // </copyright>
// *********************************************************************** // ***********************************************************************
using Core.Cerberos.Adapters; using Core.Thalos.Adapters;
using Core.Cerberos.Adapters.Common.Enums; using Core.Thalos.Adapters.Common.Enums;
using Core.Cerberos.Domain.Contexts.Onboarding.Request; using Core.Thalos.Domain.Contexts.Onboarding.Request;
namespace Core.Cerberos.Provider.Contracts namespace Core.Thalos.Provider.Contracts
{ {
public interface IPermissionService public interface IPermissionService
{ {

View File

@@ -3,11 +3,11 @@
// AgileWebs // AgileWebs
// </copyright> // </copyright>
// *********************************************************************** // ***********************************************************************
using Core.Cerberos.Adapters; using Core.Thalos.Adapters;
using Core.Cerberos.Adapters.Common.Enums; using Core.Thalos.Adapters.Common.Enums;
using Core.Cerberos.Domain.Contexts.Onboarding.Request; using Core.Thalos.Domain.Contexts.Onboarding.Request;
namespace Core.Cerberos.Provider.Contracts namespace Core.Thalos.Provider.Contracts
{ {
public interface IRoleService public interface IRoleService
{ {

View File

@@ -4,11 +4,11 @@
// </copyright> // </copyright>
// *********************************************************************** // ***********************************************************************
using Core.Blueprint.Storage.Adapters; using Core.Blueprint.Storage.Adapters;
using Core.Cerberos.Adapters; using Core.Thalos.Adapters;
using Core.Cerberos.Adapters.Common.Enums; using Core.Thalos.Adapters.Common.Enums;
using Core.Cerberos.Domain.Contexts.Onboarding.Request; using Core.Thalos.Domain.Contexts.Onboarding.Request;
namespace Core.Cerberos.Provider.Contracts namespace Core.Thalos.Provider.Contracts
{ {
public interface IUserService public interface IUserService
{ {

View File

@@ -17,8 +17,8 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Core.Cerberos.Domain\Core.Cerberos.Domain.csproj" /> <ProjectReference Include="..\Core.Thalos.Domain\Core.Thalos.Domain.csproj" />
<ProjectReference Include="..\Core.Cerberos.Infraestructure\Core.Cerberos.Infrastructure.csproj" /> <ProjectReference Include="..\Core.Thalos.Infraestructure\Core.Thalos.Infrastructure.csproj" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@@ -1,6 +1,6 @@
using MongoDB.Driver; using MongoDB.Driver;
namespace Core.Cerberos.Provider.Providers namespace Core.Thalos.Provider.Providers
{ {
public class BaseProvider public class BaseProvider
{ {

View File

@@ -1,9 +1,9 @@
using Azure.Core; using Azure.Core;
using Azure.Identity; using Azure.Identity;
using Core.Cerberos.Adapters.Common.Constants; using Core.Thalos.Adapters.Common.Constants;
using MongoDB.Driver.Authentication.Oidc; using MongoDB.Driver.Authentication.Oidc;
namespace Core.Cerberos.Provider.Providers namespace Core.Thalos.Provider.Providers
{ {
public class HeathOidcCallback : IOidcCallback public class HeathOidcCallback : IOidcCallback
{ {

View File

@@ -7,7 +7,7 @@
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using System.Security.Claims; using System.Security.Claims;
namespace Core.Cerberos.Provider.Providers namespace Core.Thalos.Provider.Providers
{ {
/// <summary> /// <summary>
/// Provides helper methods for common operations. /// Provides helper methods for common operations.

View File

@@ -3,14 +3,14 @@
// AgileWebs // AgileWebs
// </copyright> // </copyright>
// *********************************************************************** // ***********************************************************************
using Core.Cerberos.Adapters; using Core.Thalos.Adapters;
using Core.Cerberos.Adapters.Common.Constants; using Core.Thalos.Adapters.Common.Constants;
using Core.Cerberos.Adapters.Common.Enums; using Core.Thalos.Adapters.Common.Enums;
using Core.Cerberos.Domain.Contexts.Onboarding.Mappers; using Core.Thalos.Domain.Contexts.Onboarding.Mappers;
using Core.Cerberos.Domain.Contexts.Onboarding.Request; using Core.Thalos.Domain.Contexts.Onboarding.Request;
using Core.Cerberos.Infraestructure.Caching.Configs; using Core.Thalos.Infraestructure.Caching.Configs;
using Core.Cerberos.Infraestructure.Caching.Contracts; using Core.Thalos.Infraestructure.Caching.Contracts;
using Core.Cerberos.Provider.Contracts; using Core.Thalos.Provider.Contracts;
using LSA.Core.Dapper.Service.Caching; using LSA.Core.Dapper.Service.Caching;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
@@ -18,7 +18,7 @@ using Microsoft.Extensions.Options;
using MongoDB.Bson; using MongoDB.Bson;
using MongoDB.Driver; using MongoDB.Driver;
namespace Core.Cerberos.Provider.Providers.Onboarding namespace Core.Thalos.Provider.Providers.Onboarding
{ {
/// <summary> /// <summary>
/// Handles all services and business rules related to <see cref="ModuleAdapter"/>. /// Handles all services and business rules related to <see cref="ModuleAdapter"/>.

View File

@@ -3,14 +3,14 @@
// AgileWebs // AgileWebs
// </copyright> // </copyright>
// *********************************************************************** // ***********************************************************************
using Core.Cerberos.Adapters; using Core.Thalos.Adapters;
using Core.Cerberos.Adapters.Common.Constants; using Core.Thalos.Adapters.Common.Constants;
using Core.Cerberos.Adapters.Common.Enums; using Core.Thalos.Adapters.Common.Enums;
using Core.Cerberos.Domain.Contexts.Onboarding.Mappers; using Core.Thalos.Domain.Contexts.Onboarding.Mappers;
using Core.Cerberos.Domain.Contexts.Onboarding.Request; using Core.Thalos.Domain.Contexts.Onboarding.Request;
using Core.Cerberos.Infraestructure.Caching.Configs; using Core.Thalos.Infraestructure.Caching.Configs;
using Core.Cerberos.Infraestructure.Caching.Contracts; using Core.Thalos.Infraestructure.Caching.Contracts;
using Core.Cerberos.Provider.Contracts; using Core.Thalos.Provider.Contracts;
using LSA.Core.Dapper.Service.Caching; using LSA.Core.Dapper.Service.Caching;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
@@ -18,7 +18,7 @@ using Microsoft.Extensions.Options;
using MongoDB.Bson; using MongoDB.Bson;
using MongoDB.Driver; using MongoDB.Driver;
namespace Core.Cerberos.Provider.Providers.Onboarding namespace Core.Thalos.Provider.Providers.Onboarding
{ {
/// <summary> /// <summary>
/// Handles all services and business rules related to <see cref="PermissionAdapter"/>. /// Handles all services and business rules related to <see cref="PermissionAdapter"/>.

View File

@@ -3,14 +3,14 @@
// AgileWebs // AgileWebs
// </copyright> // </copyright>
// *********************************************************************** // ***********************************************************************
using Core.Cerberos.Adapters; using Core.Thalos.Adapters;
using Core.Cerberos.Adapters.Common.Constants; using Core.Thalos.Adapters.Common.Constants;
using Core.Cerberos.Adapters.Common.Enums; using Core.Thalos.Adapters.Common.Enums;
using Core.Cerberos.Domain.Contexts.Onboarding.Mappers; using Core.Thalos.Domain.Contexts.Onboarding.Mappers;
using Core.Cerberos.Domain.Contexts.Onboarding.Request; using Core.Thalos.Domain.Contexts.Onboarding.Request;
using Core.Cerberos.Infraestructure.Caching.Configs; using Core.Thalos.Infraestructure.Caching.Configs;
using Core.Cerberos.Infraestructure.Caching.Contracts; using Core.Thalos.Infraestructure.Caching.Contracts;
using Core.Cerberos.Provider.Contracts; using Core.Thalos.Provider.Contracts;
using LSA.Core.Dapper.Service.Caching; using LSA.Core.Dapper.Service.Caching;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
@@ -18,7 +18,7 @@ using Microsoft.Extensions.Options;
using MongoDB.Bson; using MongoDB.Bson;
using MongoDB.Driver; using MongoDB.Driver;
namespace Core.Cerberos.Provider.Providers.Onboarding namespace Core.Thalos.Provider.Providers.Onboarding
{ {
/// <summary> /// <summary>
/// Handles all services and business rules related to <see cref="RoleAdapter"/>. /// Handles all services and business rules related to <see cref="RoleAdapter"/>.

View File

@@ -4,14 +4,14 @@
// </copyright> // </copyright>
// *********************************************************************** // ***********************************************************************
using Core.Cerberos.Adapters; using Core.Thalos.Adapters;
using Core.Cerberos.Adapters.Common.Constants; using Core.Thalos.Adapters.Common.Constants;
using Core.Cerberos.Adapters.Common.Enums; using Core.Thalos.Adapters.Common.Enums;
using Core.Cerberos.Domain.Contexts.Onboarding.Mappers; using Core.Thalos.Domain.Contexts.Onboarding.Mappers;
using Core.Cerberos.Domain.Contexts.Onboarding.Request; using Core.Thalos.Domain.Contexts.Onboarding.Request;
using Core.Cerberos.Infraestructure.Caching.Configs; using Core.Thalos.Infraestructure.Caching.Configs;
using Core.Cerberos.Infraestructure.Caching.Contracts; using Core.Thalos.Infraestructure.Caching.Contracts;
using Core.Cerberos.Provider.Contracts; using Core.Thalos.Provider.Contracts;
using LSA.Core.Dapper.Service.Caching; using LSA.Core.Dapper.Service.Caching;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
@@ -23,7 +23,7 @@ using System.Text.RegularExpressions;
using Core.Blueprint.Storage.Contracts; using Core.Blueprint.Storage.Contracts;
using Core.Blueprint.Storage.Adapters; using Core.Blueprint.Storage.Adapters;
namespace Core.Cerberos.Provider.Providers.Onboarding namespace Core.Thalos.Provider.Providers.Onboarding
{ {
/// <summary> /// <summary>
/// Handles all services and business rules related to <see cref="UserAdapter"/>. /// Handles all services and business rules related to <see cref="UserAdapter"/>.

View File

@@ -1,9 +1,9 @@
using Core.Blueprint.Storage.Configuration; using Core.Blueprint.Storage.Configuration;
using Core.Cerberos.Infraestructure.Caching.Contracts; using Core.Thalos.Infraestructure.Caching.Contracts;
using Core.Cerberos.Infraestructure.Contexts.Mongo; using Core.Thalos.Infraestructure.Contexts.Mongo;
using Core.Cerberos.Provider.Contracts; using Core.Thalos.Provider.Contracts;
using Core.Cerberos.Provider.Providers; using Core.Thalos.Provider.Providers;
using Core.Cerberos.Provider.Providers.Onboarding; using Core.Thalos.Provider.Providers.Onboarding;
using LSA.Core.Dapper.Service.Caching; using LSA.Core.Dapper.Service.Caching;
using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
@@ -11,7 +11,7 @@ using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options; using Microsoft.Extensions.Options;
using MongoDB.Driver; using MongoDB.Driver;
namespace Core.Cerberos.Provider namespace Core.Thalos.Provider
{ {
public static class ServiceCollectionExtensions public static class ServiceCollectionExtensions
{ {