From 326e052100765f29a240291a6ab9ef174d987d99 Mon Sep 17 00:00:00 2001 From: Luis Martinez Date: Fri, 22 Dec 2023 16:07:05 -0500 Subject: [PATCH 01/13] Nuevas rutas: + Afiliados + Agenda M. + Contratos + HC --- ApiGateway/Routes/ocelot.afiliados.json | 54 +++ ApiGateway/Routes/ocelot.agendamedica.json | 126 +++++ ApiGateway/Routes/ocelot.contratos.json | 444 +++++++++++++----- ApiGateway/Routes/ocelot.historiaclinica.json | 18 + 4 files changed, 525 insertions(+), 117 deletions(-) diff --git a/ApiGateway/Routes/ocelot.afiliados.json b/ApiGateway/Routes/ocelot.afiliados.json index 8a0b4ee..e2c56e2 100644 --- a/ApiGateway/Routes/ocelot.afiliados.json +++ b/ApiGateway/Routes/ocelot.afiliados.json @@ -540,6 +540,60 @@ "PATCH" ] }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/PermisosCotizantes", + "DownstreamPathTemplate": "/PermisosCotizantes", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/PermisosCotizantes", + "DownstreamPathTemplate": "/PermisosCotizantes", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/PermisosCotizantes/{nuIdCotizanteAfil}", + "DownstreamPathTemplate": "/PermisosCotizantes/{nuIdCotizanteAfil}", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, { "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/PreguntasDeclaratorias", diff --git a/ApiGateway/Routes/ocelot.agendamedica.json b/ApiGateway/Routes/ocelot.agendamedica.json index b3e75e0..fa25c8f 100644 --- a/ApiGateway/Routes/ocelot.agendamedica.json +++ b/ApiGateway/Routes/ocelot.agendamedica.json @@ -90,6 +90,24 @@ "PATCH" ] }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/CitasMedicas/Masivo", + "DownstreamPathTemplate": "/CitasMedicas/Masivo", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, { "SwaggerKey": "MsAgendaMedica", "UpstreamPathTemplate": "/CitasMedicas/CitasEstadoNovedad", @@ -198,6 +216,42 @@ "PATCH" ] }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/CuotasSeguimientos", + "DownstreamPathTemplate": "/CuotasSeguimientos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/CuotasSeguimientos", + "DownstreamPathTemplate": "/CuotasSeguimientos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, { "SwaggerKey": "MsAgendaMedica", "UpstreamPathTemplate": "/CupsAM/Buscar", @@ -648,6 +702,78 @@ "GET" ] }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/SeguimientosMultas", + "DownstreamPathTemplate": "/SeguimientosMultas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/SeguimientosMultas", + "DownstreamPathTemplate": "/SeguimientosMultas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/TablerosMultas", + "DownstreamPathTemplate": "/TablerosMultas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAgendaMedica", + "UpstreamPathTemplate": "/TablerosMultas", + "DownstreamPathTemplate": "/TablerosMultas", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8155 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, { "SwaggerKey": "MsAgendaMedica", "UpstreamPathTemplate": "/TablerosPendientes", diff --git a/ApiGateway/Routes/ocelot.contratos.json b/ApiGateway/Routes/ocelot.contratos.json index 1c67ab8..e257672 100644 --- a/ApiGateway/Routes/ocelot.contratos.json +++ b/ApiGateway/Routes/ocelot.contratos.json @@ -1,59 +1,5 @@ { "Routes": [ - { - "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/AdminPlanesArrayDto", - "DownstreamPathTemplate": "/AdminPlanesArrayDto", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8149 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "GET" - ] - }, - { - "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/AdminPlanesArrayDto", - "DownstreamPathTemplate": "/AdminPlanesArrayDto", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8149 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "POST" - ] - }, - { - "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/AdminPlanesArrayDto", - "DownstreamPathTemplate": "/AdminPlanesArrayDto", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8149 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "PATCH" - ] - }, { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/BloqueoCAPCTT", @@ -180,6 +126,24 @@ "GET" ] }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/CapCTTPorCTT", + "DownstreamPathTemplate": "/CapCTTPorCTT", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/CapCTTPorCTT/FechaBloqueo", @@ -198,24 +162,6 @@ "GET" ] }, - { - "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/CapCTTPorCTT", - "DownstreamPathTemplate": "/CapCTTPorCTT", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8149 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "POST" - ] - }, { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/CapCTTPorCTT/Eliminar", @@ -414,24 +360,6 @@ "PATCH" ] }, - { - "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/Convenios", - "DownstreamPathTemplate": "/Convenios", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8149 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "PATCH" - ] - }, { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/Convenios", @@ -468,6 +396,24 @@ "POST" ] }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Convenios", + "DownstreamPathTemplate": "/Convenios", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/Convenios/Eliminar", @@ -558,6 +504,24 @@ "PATCH" ] }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/Cups/CargueMasivo", + "DownstreamPathTemplate": "/Cups/CargueMasivo", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/EAPBS", @@ -666,6 +630,114 @@ "POST" ] }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/api/EscalaPorMedicamento", + "DownstreamPathTemplate": "/api/EscalaPorMedicamento", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/api/EscalaPorMedicamento", + "DownstreamPathTemplate": "/api/EscalaPorMedicamento", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/api/EscalaPorMedicamento", + "DownstreamPathTemplate": "/api/EscalaPorMedicamento", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/api/EscalaPorServicio", + "DownstreamPathTemplate": "/api/EscalaPorServicio", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/api/EscalaPorServicio", + "DownstreamPathTemplate": "/api/EscalaPorServicio", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/api/EscalaPorServicio", + "DownstreamPathTemplate": "/api/EscalaPorServicio", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/EscalasSocioeconomicas", @@ -792,6 +864,60 @@ "PATCH" ] }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/api/MedicamentoPorPlan", + "DownstreamPathTemplate": "/api/MedicamentoPorPlan", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/api/MedicamentoPorPlan", + "DownstreamPathTemplate": "/api/MedicamentoPorPlan", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/api/MedicamentoPorPlan", + "DownstreamPathTemplate": "/api/MedicamentoPorPlan", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/Medicamentos", @@ -1242,6 +1368,60 @@ "PATCH" ] }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/ServiciosPorPlan", + "DownstreamPathTemplate": "/ServiciosPorPlan", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/ServiciosPorPlan", + "DownstreamPathTemplate": "/ServiciosPorPlan", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/ServiciosPorPlan", + "DownstreamPathTemplate": "/ServiciosPorPlan", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/ServiciosPrestador/GrupoCups", @@ -1350,6 +1530,42 @@ "PATCH" ] }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/TarifasBase/Servicios", + "DownstreamPathTemplate": "/TarifasBase/Servicios", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/TarifasBase/Medicamentos", + "DownstreamPathTemplate": "/TarifasBase/Medicamentos", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/TarifasPorCUPMDT", @@ -1404,29 +1620,6 @@ "PATCH" ] }, - { - "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/TarifasPorMDT", - "DownstreamPathTemplate": "/TarifasPorMDT", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8149 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "GET" - ] - }, - - - - - { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/TarifasPorCUPMDT/CargueMasivo", @@ -1447,8 +1640,8 @@ }, { "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/Cups/CargueMasivo", - "DownstreamPathTemplate": "/Cups/CargueMasivo", + "UpstreamPathTemplate": "/TarifasPorMDT", + "DownstreamPathTemplate": "/TarifasPorMDT", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { @@ -1460,9 +1653,26 @@ "permisos": "any" }, "UpstreamHttpMethod": [ - "POST" + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/TarifasPorMDT", + "DownstreamPathTemplate": "/TarifasPorMDT", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" ] } - ] } \ No newline at end of file diff --git a/ApiGateway/Routes/ocelot.historiaclinica.json b/ApiGateway/Routes/ocelot.historiaclinica.json index 2bf89f7..7eddde2 100644 --- a/ApiGateway/Routes/ocelot.historiaclinica.json +++ b/ApiGateway/Routes/ocelot.historiaclinica.json @@ -450,6 +450,24 @@ "GET" ] }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/Incapacidad", + "DownstreamPathTemplate": "/Incapacidad", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, { "SwaggerKey": "MsHistoriaClinica", "UpstreamPathTemplate": "/Rias", From f1777c7d96ecb36e46b46019cbb76d3bb75928e9 Mon Sep 17 00:00:00 2001 From: Luis Martinez Date: Fri, 22 Dec 2023 16:08:50 -0500 Subject: [PATCH 02/13] Ldap login v1 --- Auth/Properties/launchSettings.json | 12 +++ LdapLoginLib/LdapLoginLib.csproj | 14 +++ LdapLoginLib/LdapUser.cs | 103 +++++++++++++++++++++ LdapLoginLib/LoginLib.cs | 133 ++++++++++++++++++++++++++++ 4 files changed, 262 insertions(+) create mode 100644 Auth/Properties/launchSettings.json create mode 100644 LdapLoginLib/LdapLoginLib.csproj create mode 100644 LdapLoginLib/LdapUser.cs create mode 100644 LdapLoginLib/LoginLib.cs diff --git a/Auth/Properties/launchSettings.json b/Auth/Properties/launchSettings.json new file mode 100644 index 0000000..408ce4f --- /dev/null +++ b/Auth/Properties/launchSettings.json @@ -0,0 +1,12 @@ +{ + "profiles": { + "Auth": { + "commandName": "Project", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + }, + "applicationUrl": "https://localhost:58174;http://localhost:58175" + } + } +} \ No newline at end of file diff --git a/LdapLoginLib/LdapLoginLib.csproj b/LdapLoginLib/LdapLoginLib.csproj new file mode 100644 index 0000000..4c2dabd --- /dev/null +++ b/LdapLoginLib/LdapLoginLib.csproj @@ -0,0 +1,14 @@ + + + + net6.0 + enable + enable + + + + + + + + diff --git a/LdapLoginLib/LdapUser.cs b/LdapLoginLib/LdapUser.cs new file mode 100644 index 0000000..c5a4fde --- /dev/null +++ b/LdapLoginLib/LdapUser.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace LdapLoginLib +{ + public class LdapUser + { + /// + /// The unique identifier for the user (mandatory). + /// Example: "jdoe" + /// + public string Uid { get; set; } + + /// + /// The common name of the user. + /// Example: "John Doe" + /// + public string? Cn { get; set; } + + /// + /// The user's given name. + /// Example: "John" + /// + public string? GivenName { get; set; } + + /// + /// The user's surname. + /// Example: "Doe" + /// + public string? Sn { get; set; } + + /// + /// The user's email address. + /// Example: "jdoe@example.com" + /// + public string? Mail { get; set; } + + /// + /// The status of the user's internet account. + /// Example: "Active" + /// + public string? InetUserStatus { get; set; } + + /// + /// The organization the user belongs to. + /// Example: "Acme Inc.", currently "Sede" + /// + public string? O { get; set; } + + /// + /// The status of the user's account as boolean. + /// Example: true or false + /// + public bool? IsActive { get; set; } = null; + + } + + + /******************************************** + * * + * Discared / not in used * + * * + ******************************************** + + /// + /// The user's password. + /// Example: "P@ssw0rd" + /// + public string? UserPassword { get; set; } + + /// + /// The type of employee (e.g., full-time, part-time). + /// Example: "Full-Time", currently numbers + /// + public string? EmployeeType { get; set; } + + /// + /// The business category of the user. + /// Example: "Sales" + /// + public string? BusinessCategory { get; set; } + + /// + /// The employee's unique identification number. + /// Example: "E12345" + /// + public string? EmployeeNumber { get; set; } + + /// + /// The license information for the user. + /// Example: "Licensed for Software X, Y, and Z" + /// + public string? NsLicensedFor { get; set; } + + + ******************************************** + * * + ********************************************/ + +} diff --git a/LdapLoginLib/LoginLib.cs b/LdapLoginLib/LoginLib.cs new file mode 100644 index 0000000..6f9035f --- /dev/null +++ b/LdapLoginLib/LoginLib.cs @@ -0,0 +1,133 @@ +using System.DirectoryServices.Protocols; + +namespace LdapLoginLib +{ + public class LoginLib + { + private const string _ldapServer = "10.31.3.13"; + private const int _ldapPort = 389; + + private const string _ldapDn = "ou=People,o=unal.edu.co"; //uid=pdocente, + //string ldapPassword = "TJBjzn64"; + + + + public static bool Login(string uid, string password, string ldapDn = _ldapDn) + { + + using (LdapConnection ldapConnection = new($"{_ldapServer}:{_ldapPort}")) + { + try + { + string ldapUserDn = $"uid={uid},{_ldapDn}"; + + // Set LDAP connection options + ldapConnection.SessionOptions.SecureSocketLayer = false; + ldapConnection.AuthType = AuthType.Basic; + ldapConnection.Credential = new System.Net.NetworkCredential(ldapUserDn, password); + + // Attempt to bind (authenticate) the user + ldapConnection.Bind(); + + return _userIsActive(ldapConnection, ldapUserDn); + } + catch (LdapException ldapEx) + { + //Console.WriteLine($"Authentication failed: {ldapEx.Message}"); + throw new Exception(_getErrorMessage(ldapEx.ErrorCode, ldapEx.Message)); + } + catch (Exception ex) + { + //Console.WriteLine($"An error occurred: {ex.Message}"); + throw new Exception($"Ocurrió un error: {ex.Message}"); + } + + } + } + + private static bool _userIsActive(LdapConnection ldapConnection, string ldapUserDn) + { + //ldapUserDn = $"uid=acbuitragoc,{_ldapDn}"; + SearchRequest searchRequest = new( + ldapUserDn, + "(objectClass=*)", + SearchScope.Base, + "InetUserStatus" + ); + + SearchResponse searchResponse = (SearchResponse)ldapConnection.SendRequest(searchRequest); + + if (searchResponse.Entries.Count > 0) + { + SearchResultEntry entry = searchResponse.Entries[0]; + + string? inetUserStatus = entry.Attributes["inetUserStatus"][0].ToString(); + + if (inetUserStatus != null) + { + return inetUserStatus.ToLower().Trim() == "active" ? true : false; + } + throw new Exception(); + } + else + { + throw new Exception($"Usuario o atributo no encontrado."); + } + } + + + private static LdapUser _getUserData(LdapConnection ldapConnection, string ldapUserDn, string[] attributesToReturn) + { + + return new LdapUser(); + + + //SearchRequest searchRequest = new( + // searchBase, + // ldapFilter, + // SearchScope.Subtree, + // attributesToReturn + //); + + //SearchResponse searchResponse = (SearchResponse)ldapConnection.SendRequest(searchRequest); + + + //if (searchResponse != null && searchResponse.Entries.Count > 0) + //{ + // SearchResultEntry entry = searchResponse.Entries[0]; + + // // Access and process user attributes here + // foreach (DirectoryAttribute attribute in entry.Attributes.Values) + // { + // string attributeName = attribute.Name; + // string[] attributeValues = (string[])attribute.GetValues(typeof(string)); + + // // Process or display attribute values as needed + // Console.WriteLine($"{attributeName}: {string.Join(", ", attributeValues)}"); + // } + //} + //else + //{ + // throw new Exception($"Usuario o atributos no encontrados."); + //} + } + + + private static string _getErrorMessage(int errorCode, string errorMessage) + { + // Map LDAP error codes to error messages + + switch (errorCode) + { + case 49: + return "Error de credenciales: nombre de usuario o contraseña incorrectos"; + case 52: + return "Error de autenticación: cuenta está deshabilitada"; + case 81: + return "Error de servidor: no disponible"; + default: + return errorMessage; + } + } + } +} \ No newline at end of file From 91a155c631a978a33330957a11d2b555e801328c Mon Sep 17 00:00:00 2001 From: Luis M Date: Wed, 27 Dec 2023 19:16:45 -0500 Subject: [PATCH 03/13] + Ruta afiliaciones: Afiliados/ConsentiAutor + Ruta Ctt: Plan beneficios v2 --- ApiGateway/Routes/ocelot.afiliados.json | 18 +++++++ ApiGateway/Routes/ocelot.contratos.json | 72 ++++++++++++++++++------- 2 files changed, 72 insertions(+), 18 deletions(-) diff --git a/ApiGateway/Routes/ocelot.afiliados.json b/ApiGateway/Routes/ocelot.afiliados.json index e2c56e2..4bbed73 100644 --- a/ApiGateway/Routes/ocelot.afiliados.json +++ b/ApiGateway/Routes/ocelot.afiliados.json @@ -72,6 +72,24 @@ "GET" ] }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/Afiliados/ConsentiAutor", + "DownstreamPathTemplate": "/Afiliados/ConsentiAutor", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, { "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Afiliados/Aceptar", diff --git a/ApiGateway/Routes/ocelot.contratos.json b/ApiGateway/Routes/ocelot.contratos.json index e257672..00796a4 100644 --- a/ApiGateway/Routes/ocelot.contratos.json +++ b/ApiGateway/Routes/ocelot.contratos.json @@ -632,8 +632,8 @@ }, { "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/api/EscalaPorMedicamento", - "DownstreamPathTemplate": "/api/EscalaPorMedicamento", + "UpstreamPathTemplate": "/EscalaPorMedicamento", + "DownstreamPathTemplate": "/EscalaPorMedicamento", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { @@ -650,8 +650,8 @@ }, { "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/api/EscalaPorMedicamento", - "DownstreamPathTemplate": "/api/EscalaPorMedicamento", + "UpstreamPathTemplate": "/EscalaPorMedicamento", + "DownstreamPathTemplate": "/EscalaPorMedicamento", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { @@ -668,8 +668,8 @@ }, { "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/api/EscalaPorMedicamento", - "DownstreamPathTemplate": "/api/EscalaPorMedicamento", + "UpstreamPathTemplate": "/EscalaPorMedicamento", + "DownstreamPathTemplate": "/EscalaPorMedicamento", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { @@ -686,8 +686,8 @@ }, { "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/api/EscalaPorServicio", - "DownstreamPathTemplate": "/api/EscalaPorServicio", + "UpstreamPathTemplate": "/EscalaPorServicio", + "DownstreamPathTemplate": "/EscalaPorServicio", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { @@ -704,8 +704,8 @@ }, { "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/api/EscalaPorServicio", - "DownstreamPathTemplate": "/api/EscalaPorServicio", + "UpstreamPathTemplate": "/EscalaPorServicio", + "DownstreamPathTemplate": "/EscalaPorServicio", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { @@ -722,8 +722,8 @@ }, { "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/api/EscalaPorServicio", - "DownstreamPathTemplate": "/api/EscalaPorServicio", + "UpstreamPathTemplate": "/EscalaPorServicio", + "DownstreamPathTemplate": "/EscalaPorServicio", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { @@ -866,8 +866,8 @@ }, { "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/api/MedicamentoPorPlan", - "DownstreamPathTemplate": "/api/MedicamentoPorPlan", + "UpstreamPathTemplate": "/MedicamentoPorPlan", + "DownstreamPathTemplate": "/MedicamentoPorPlan", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { @@ -884,8 +884,8 @@ }, { "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/api/MedicamentoPorPlan", - "DownstreamPathTemplate": "/api/MedicamentoPorPlan", + "UpstreamPathTemplate": "/MedicamentoPorPlan", + "DownstreamPathTemplate": "/MedicamentoPorPlan", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { @@ -902,8 +902,8 @@ }, { "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/api/MedicamentoPorPlan", - "DownstreamPathTemplate": "/api/MedicamentoPorPlan", + "UpstreamPathTemplate": "/MedicamentoPorPlan", + "DownstreamPathTemplate": "/MedicamentoPorPlan", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { @@ -1008,6 +1008,42 @@ "POST" ] }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/PlanBeneficios", + "DownstreamPathTemplate": "/PlanBeneficios", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsContratos", + "UpstreamPathTemplate": "/PlanBeneficios", + "DownstreamPathTemplate": "/PlanBeneficios", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8149 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/Planes", From e1bbffc4d9c454c907189e32ef249910b9c780f1 Mon Sep 17 00:00:00 2001 From: Luis M Date: Tue, 2 Jan 2024 08:23:49 -0500 Subject: [PATCH 04/13] cambio url mail --- ApiGateway/Routes/ocelot.email.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ApiGateway/Routes/ocelot.email.json b/ApiGateway/Routes/ocelot.email.json index efb416c..2843d3a 100644 --- a/ApiGateway/Routes/ocelot.email.json +++ b/ApiGateway/Routes/ocelot.email.json @@ -1,12 +1,9 @@ { "Routes": [ - { "SwaggerKey": "MsEmail", "UpstreamPathTemplate": "/Email", - "UpstreamHttpMethod": [ "POST" ], - - "DownstreamPathTemplate": "/api/Email", + "DownstreamPathTemplate": "/Email", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { @@ -16,7 +13,10 @@ ], "RouteClaimsRequirement": { "permisos": "any" - } + }, + "UpstreamHttpMethod": [ + "POST" + ] } ] -} +} \ No newline at end of file From 21726af021e13b6d7bbc8a66db710b53a395bd40 Mon Sep 17 00:00:00 2001 From: Luis M Date: Thu, 25 Jan 2024 15:26:37 -0500 Subject: [PATCH 05/13] + Rutas: Tracking (auditoria) --- .../Routes/ocelot.SwaggerEndPoints.json | 12 +++++- ApiGateway/Routes/ocelot.mstracking.json | 40 +++++++++++++++++++ 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 ApiGateway/Routes/ocelot.mstracking.json diff --git a/ApiGateway/Routes/ocelot.SwaggerEndPoints.json b/ApiGateway/Routes/ocelot.SwaggerEndPoints.json index 609e029..6d4c791 100644 --- a/ApiGateway/Routes/ocelot.SwaggerEndPoints.json +++ b/ApiGateway/Routes/ocelot.SwaggerEndPoints.json @@ -348,8 +348,18 @@ "Url": "http://localhost:8175/swagger/v1/swagger.json" } ] + }, + { + "Key": "MsTracking", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsTracking", + "Version": "1.0", + "Url": "http://localhost:8176/swagger/v1/swagger.json" + } + ] } - ] } diff --git a/ApiGateway/Routes/ocelot.mstracking.json b/ApiGateway/Routes/ocelot.mstracking.json new file mode 100644 index 0000000..ad0fa41 --- /dev/null +++ b/ApiGateway/Routes/ocelot.mstracking.json @@ -0,0 +1,40 @@ +{ + "Routes": [ + { + "SwaggerKey": "MsTracking", + "UpstreamPathTemplate": "/Tracking", + "DownstreamPathTemplate": "/Tracking", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8176 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsTracking", + "UpstreamPathTemplate": "/Tracking", + "DownstreamPathTemplate": "/Tracking", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8176 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + } + ] +} \ No newline at end of file From 71f6bd1d70254b387abd9bff8d3a69d9bf1ad46c Mon Sep 17 00:00:00 2001 From: Luis M Date: Thu, 25 Jan 2024 16:58:57 -0500 Subject: [PATCH 06/13] Limpieza de logs --- ApiGateway/CustomLogic.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ApiGateway/CustomLogic.cs b/ApiGateway/CustomLogic.cs index 238da94..c1d4149 100644 --- a/ApiGateway/CustomLogic.cs +++ b/ApiGateway/CustomLogic.cs @@ -24,8 +24,8 @@ namespace ApiGateway //var route2 = ctx.Items.DownstreamRequest(); //Solo el path del request //var route3 = ctx.Items.DownstreamRoute(); //Datos full del request - var loggerFactory = LoggerFactory.Create(builder => builder.AddConsole().AddEventLog()); - var logger = loggerFactory.CreateLogger("Auth"); + //var loggerFactory = LoggerFactory.Create(builder => builder.AddConsole().AddEventLog()); + //var logger = loggerFactory.CreateLogger("Auth"); //TODO: ELIMINAR ESTAS RUTAS POR COMPLETO! // TknCambioClave @@ -34,7 +34,8 @@ namespace ApiGateway string calledUrl = ctx.Items.DownstreamRoute().UpstreamPathTemplate.OriginalValue; - logger.LogError(71, $"DownstreamRoute: {calledUrl}"); + //logger.LogError(71, $"DownstreamRoute: {calledUrl}"); + // Excepcion para login, no requiere token if ( String.Equals(calledUrl, "/ldap/Conectar") || From 5c698bca7159a2abc5f5a81a51e6f999dc8f469a Mon Sep 17 00:00:00 2001 From: Luis M Date: Mon, 29 Jan 2024 09:41:06 -0500 Subject: [PATCH 07/13] + Rutas ADRES afiliaciones --- ApiGateway/Routes/ocelot.afiliados.json | 144 ++++++++++++++++++++++++ 1 file changed, 144 insertions(+) diff --git a/ApiGateway/Routes/ocelot.afiliados.json b/ApiGateway/Routes/ocelot.afiliados.json index 4bbed73..35785ea 100644 --- a/ApiGateway/Routes/ocelot.afiliados.json +++ b/ApiGateway/Routes/ocelot.afiliados.json @@ -1,5 +1,113 @@ { "Routes": [ + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/Adres/ArchivoCE", + "DownstreamPathTemplate": "/Adres/ArchivoCE", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/Adres/ArchivoCE", + "DownstreamPathTemplate": "/Adres/ArchivoCE", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/Adres/ArchivoME", + "DownstreamPathTemplate": "/Adres/ArchivoME", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/Adres/ArchivoME", + "DownstreamPathTemplate": "/Adres/ArchivoME", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/Adres/ArchivoNE", + "DownstreamPathTemplate": "/Adres/ArchivoNE", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/Adres/ArchivoNE", + "DownstreamPathTemplate": "/Adres/ArchivoNE", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, { "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Afiliados", @@ -252,6 +360,42 @@ "POST" ] }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/Afiliados/ObtenerAfiliados", + "DownstreamPathTemplate": "/Afiliados/ObtenerAfiliados", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/Afiliados/NotificarAfiliado", + "DownstreamPathTemplate": "/Afiliados/NotificarAfiliado", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, { "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/AportesAfil", From 7e4cbf914eefe9c231d2f90f589bb3bc00f03d43 Mon Sep 17 00:00:00 2001 From: Luis M Date: Tue, 30 Jan 2024 18:47:30 -0500 Subject: [PATCH 08/13] + Rutas HC: Notificar, HcPorDocExt --- ApiGateway/Routes/ocelot.historiaclinica.json | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/ApiGateway/Routes/ocelot.historiaclinica.json b/ApiGateway/Routes/ocelot.historiaclinica.json index 7eddde2..5c8c95e 100644 --- a/ApiGateway/Routes/ocelot.historiaclinica.json +++ b/ApiGateway/Routes/ocelot.historiaclinica.json @@ -414,6 +414,24 @@ "POST" ] }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/HistoriaClinica/HcPorDocExt", + "DownstreamPathTemplate": "/HistoriaClinica/HcPorDocExt", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "DELETE" + ] + }, { "SwaggerKey": "MsHistoriaClinica", "UpstreamPathTemplate": "/HistoriaClinica/HcPorDocExt", @@ -468,6 +486,24 @@ "PATCH" ] }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/Incapacidades/Notificar", + "DownstreamPathTemplate": "/Incapacidades/Notificar", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, { "SwaggerKey": "MsHistoriaClinica", "UpstreamPathTemplate": "/Rias", From 45172879b1d619fc827ea9a5ee8a6d149c7b743f Mon Sep 17 00:00:00 2001 From: Luis M Date: Fri, 9 Feb 2024 17:57:46 -0500 Subject: [PATCH 09/13] + Rutas HC, + Logs --- ApiGateway/CustomLogic.cs | 6 +-- ApiGateway/Program.cs | 4 +- ApiGateway/Routes/ocelot.historiaclinica.json | 54 +++++++++++++++++++ 3 files changed, 59 insertions(+), 5 deletions(-) diff --git a/ApiGateway/CustomLogic.cs b/ApiGateway/CustomLogic.cs index c1d4149..210dd89 100644 --- a/ApiGateway/CustomLogic.cs +++ b/ApiGateway/CustomLogic.cs @@ -24,8 +24,8 @@ namespace ApiGateway //var route2 = ctx.Items.DownstreamRequest(); //Solo el path del request //var route3 = ctx.Items.DownstreamRoute(); //Datos full del request - //var loggerFactory = LoggerFactory.Create(builder => builder.AddConsole().AddEventLog()); - //var logger = loggerFactory.CreateLogger("Auth"); + var loggerFactory = LoggerFactory.Create(builder => builder.AddConsole().AddEventLog()); + var logger = loggerFactory.CreateLogger("Auth"); //TODO: ELIMINAR ESTAS RUTAS POR COMPLETO! // TknCambioClave @@ -165,7 +165,7 @@ namespace ApiGateway } catch (Exception e) { - //logger.LogError(71, e.Message); + logger.LogError(71, e.Message); ctx.Items.SetError(new UnauthenticatedError(e.Message)); return false; } diff --git a/ApiGateway/Program.cs b/ApiGateway/Program.cs index 5e36c7c..0271076 100644 --- a/ApiGateway/Program.cs +++ b/ApiGateway/Program.cs @@ -20,7 +20,7 @@ builder.Configuration.AddOcelotWithSwaggerSupport(options => var loggerFactory = LoggerFactory.Create(builder => builder.AddConsole().AddEventLog()); -//var logger = loggerFactory.CreateLogger("Gateway"); +var logger = loggerFactory.CreateLogger("Gateway"); builder.Configuration.SetBasePath(builder.Environment.ContentRootPath) .AddJsonFile("ocelot.json", optional: false, reloadOnChange: true) @@ -61,7 +61,7 @@ var pipeConfig = new OcelotPipelineConfiguration .Append("Date: ").AppendLine(date) .Append("Errors: ") .AppendLine(downStreamContext.Items.Errors().ToString()); - //logger.LogWarning(27, sb2.ToString()); + logger.LogWarning(27, sb2.ToString()); //downStreamContext.Items.SetError(new UnauthenticatedError("Nel wey, no estas autorizado")); return; } diff --git a/ApiGateway/Routes/ocelot.historiaclinica.json b/ApiGateway/Routes/ocelot.historiaclinica.json index 5c8c95e..0423dc0 100644 --- a/ApiGateway/Routes/ocelot.historiaclinica.json +++ b/ApiGateway/Routes/ocelot.historiaclinica.json @@ -504,6 +504,60 @@ "POST" ] }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/Incapacidades/Masivo", + "DownstreamPathTemplate": "/Incapacidades/Masivo", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/PagosLicencias", + "DownstreamPathTemplate": "/PagosLicencias", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsHistoriaClinica", + "UpstreamPathTemplate": "/PagosLicencias/Masivo", + "DownstreamPathTemplate": "/PagosLicencias/Masivo", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8154 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, { "SwaggerKey": "MsHistoriaClinica", "UpstreamPathTemplate": "/Rias", From cfad14ec2e47e4e05d67221ad5a1dde9b69cf033 Mon Sep 17 00:00:00 2001 From: Luis M Date: Fri, 9 Feb 2024 18:07:29 -0500 Subject: [PATCH 10/13] - Rutas: Laboratorio Clinico --- .../Routes/ocelot.laboratorioclinico.json | 144 ------------------ 1 file changed, 144 deletions(-) diff --git a/ApiGateway/Routes/ocelot.laboratorioclinico.json b/ApiGateway/Routes/ocelot.laboratorioclinico.json index 898c368..2251716 100644 --- a/ApiGateway/Routes/ocelot.laboratorioclinico.json +++ b/ApiGateway/Routes/ocelot.laboratorioclinico.json @@ -1,77 +1,5 @@ { "Routes": [ - { - "SwaggerKey": "MsLaboratorioClinico", - "UpstreamPathTemplate": "/AreasLabClinico", - "DownstreamPathTemplate": "/AreasLabClinico", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8162 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "GET" - ] - }, - { - "SwaggerKey": "MsLaboratorioClinico", - "UpstreamPathTemplate": "/AreasLabClinico", - "DownstreamPathTemplate": "/AreasLabClinico", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8162 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "POST" - ] - }, - { - "SwaggerKey": "MsLaboratorioClinico", - "UpstreamPathTemplate": "/AreasLabClinico", - "DownstreamPathTemplate": "/AreasLabClinico", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8162 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "PATCH" - ] - }, - { - "SwaggerKey": "MsLaboratorioClinico", - "UpstreamPathTemplate": "/AreasLabClinico/Estado", - "DownstreamPathTemplate": "/AreasLabClinico/Estado", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8162 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "PATCH" - ] - }, { "SwaggerKey": "MsLaboratorioClinico", "UpstreamPathTemplate": "/CupsItems", @@ -611,78 +539,6 @@ "UpstreamHttpMethod": [ "POST" ] - }, - { - "SwaggerKey": "MsLaboratorioClinico", - "UpstreamPathTemplate": "/SeccionesLabClinico", - "DownstreamPathTemplate": "/SeccionesLabClinico", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8162 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "GET" - ] - }, - { - "SwaggerKey": "MsLaboratorioClinico", - "UpstreamPathTemplate": "/SeccionesLabClinico", - "DownstreamPathTemplate": "/SeccionesLabClinico", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8162 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "POST" - ] - }, - { - "SwaggerKey": "MsLaboratorioClinico", - "UpstreamPathTemplate": "/SeccionesLabClinico", - "DownstreamPathTemplate": "/SeccionesLabClinico", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8162 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "PATCH" - ] - }, - { - "SwaggerKey": "MsLaboratorioClinico", - "UpstreamPathTemplate": "/SeccionesLabClinico/Estado", - "DownstreamPathTemplate": "/SeccionesLabClinico/Estado", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8162 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "PATCH" - ] } ] } \ No newline at end of file From 647bf158da01789f4f869e2ae95bafdebe03d871 Mon Sep 17 00:00:00 2001 From: Luis M Date: Wed, 14 Feb 2024 18:23:51 -0500 Subject: [PATCH 11/13] Nuevo MS + rutas: MsIncapacidadesLicencias --- .../Routes/ocelot.SwaggerEndPoints.json | 373 +++++++++--------- .../Routes/ocelot.incapacidadeslicencias.json | 76 ++++ 2 files changed, 265 insertions(+), 184 deletions(-) create mode 100644 ApiGateway/Routes/ocelot.incapacidadeslicencias.json diff --git a/ApiGateway/Routes/ocelot.SwaggerEndPoints.json b/ApiGateway/Routes/ocelot.SwaggerEndPoints.json index 6d4c791..a54f97b 100644 --- a/ApiGateway/Routes/ocelot.SwaggerEndPoints.json +++ b/ApiGateway/Routes/ocelot.SwaggerEndPoints.json @@ -1,16 +1,5 @@ { "SwaggerEndPoints": [ - { - "Key": "MsPing", - "TransformByOcelotConfig": true, - "Config": [ - { - "Name": "MsPing", - "Version": "1.0", - "Url": "http://localhost:8198/swagger/v1/swagger.json" - } - ] - }, { "Key": "ApiGetway", "TransformByOcelotConfig": false, @@ -22,15 +11,80 @@ } ] }, - { - "Key": "MsDatosMaestros", + "Key": "MsAdminUsuarios", "TransformByOcelotConfig": true, "Config": [ { - "Name": "MsDatosMaestros", + "Name": "MsAdminUsuarios", "Version": "1.0", - "Url": "http://localhost:8146/swagger/v1/swagger.json" + "Url": "http://localhost:8151/swagger/v1/swagger.json" + } + ] + }, + { + "Key": "MsAfiliados", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsAfiliados", + "Version": "1.0", + "Url": "http://localhost:8145/swagger/v1/swagger.json" + } + ] + }, + { + "Key": "MsAgendaMedica", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsAgendaMedica", + "Version": "1.0", + "Url": "http://localhost:8155/swagger/v1/swagger.json" + } + ] + }, + { + "Key": "MsAudMedConcurrente", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsAudMedConcurrente", + "Version": "1.0", + "Url": "http://localhost:8163/swagger/v1/swagger.json" + } + ] + }, + { + "Key": "MsAuditarHC", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsAuditarHC", + "Version": "1.0", + "Url": "http://localhost:8168/swagger/v1/swagger.json" + } + ] + }, + { + "Key": "MsAuditoria", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsAuditoria", + "Version": "1.0", + "Url": "http://localhost:8167/swagger/v1/swagger.json" + } + ] + }, + { + "Key": "MsAuditoriaHC", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsAuditoriaHC", + "Version": "1.0", + "Url": "http://localhost:8157/swagger/v1/swagger.json" } ] }, @@ -46,51 +100,38 @@ ] }, { - "Key": "MsAdminUsuarios", + "Key": "MsCajaFacturacion", "TransformByOcelotConfig": true, "Config": [ { - "Name": "MsAdminUsuarios", + "Name": "MsCajaFacturacion", "Version": "1.0", - "Url": "http://localhost:8151/swagger/v1/swagger.json" - } - ] - }, - - { - "Key": "MsAfiliados", - "TransformByOcelotConfig": true, - "Config": [ - { - "Name": "MsAfiliados", - "Version": "1.0", - "Url": "http://localhost:8145/swagger/v1/swagger.json" + "Url": "http://localhost:8150/swagger/v1/swagger.json" } ] }, { - "Key": "MsExterno", + "Key": "MsCalidad", "TransformByOcelotConfig": true, "Config": [ { - "Name": "MsExterno", + "Name": "MsCalidad", "Version": "1.0", - "Url": "http://localhost:8199/swagger/v1/swagger.json" + "Url": "http://localhost:8172/swagger/v1/swagger.json" } ] }, { - "Key": "MsEmail", + "Key": "MsComTecCientifico", "TransformByOcelotConfig": true, "Config": [ { - "Name": "MsEmail", + "Name": "MsComTecCientifico", "Version": "1.0", - "Url": "http://localhost:8170/swagger/v1/swagger.json" + "Url": "http://localhost:8161/swagger/v1/swagger.json" } ] }, - { "Key": "MsContratos", "TransformByOcelotConfig": true, @@ -124,96 +165,47 @@ } ] }, - { - "Key": "MsAgendaMedica", + "Key": "MsCuentasMedicas", "TransformByOcelotConfig": true, "Config": [ { - "Name": "MsAgendaMedica", + "Name": "MsCuentasMedicas", "Version": "1.0", - "Url": "http://localhost:8155/swagger/v1/swagger.json" - } - ] - }, - - { - "Key": "MsCajaFacturacion", - "TransformByOcelotConfig": true, - "Config": [ - { - "Name": "MsCajaFacturacion", - "Version": "1.0", - "Url": "http://localhost:8150/swagger/v1/swagger.json" - } - ] - }, - - { - "Key": "MsReferencia", - "TransformByOcelotConfig": true, - "Config": [ - { - "Name": "MsReferencia", - "Version": "1.0", - "Url": "http://localhost:8160/swagger/v1/swagger.json" - } - ] - }, - //{ - // "Key": "MsComiteTC", - // "TransformByOcelotConfig": true, - // "Config": [ - // { - // "Name": "MsComiteTC", - // "Version": "1.0", - // "Url": "http://localhost:8166/swagger/v1/swagger.json" - // } - // ] - //}, - { - "Key": "MsInformes", - "TransformByOcelotConfig": true, - "Config": [ - { - "Name": "MsInformes", - "Version": "1.0", - "Url": "http://localhost:8164/swagger/v1/swagger.json" - } - ] - }, - - { - "Key": "MsAudMedConcurrente", - "TransformByOcelotConfig": true, - "Config": [ - { - "Name": "MsAudMedConcurrente", - "Version": "1.0", - "Url": "http://localhost:8163/swagger/v1/swagger.json" - } - ] - }, - - { - "Key": "MsHistoriaClinica", - "TransformByOcelotConfig": true, - "Config": [ - { - "Name": "MsHistoriaClinica", - "Version": "1.0", - "Url": "http://localhost:8154/swagger/v1/swagger.json" + "Url": "http://localhost:8174/swagger/v1/swagger.json" } ] }, { - "Key": "MsAuditarHC", + "Key": "MsDatosMaestros", "TransformByOcelotConfig": true, "Config": [ { - "Name": "MsAuditarHC", + "Name": "MsDatosMaestros", "Version": "1.0", - "Url": "http://localhost:8168/swagger/v1/swagger.json" + "Url": "http://localhost:8146/swagger/v1/swagger.json" + } + ] + }, + { + "Key": "MsEmail", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsEmail", + "Version": "1.0", + "Url": "http://localhost:8170/swagger/v1/swagger.json" + } + ] + }, + { + "Key": "MsExterno", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsExterno", + "Version": "1.0", + "Url": "http://localhost:8199/swagger/v1/swagger.json" } ] }, @@ -228,6 +220,17 @@ } ] }, + { + "Key": "MsHistoriaClinica", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsHistoriaClinica", + "Version": "1.0", + "Url": "http://localhost:8154/swagger/v1/swagger.json" + } + ] + }, { "Key": "MsImagenologia", "TransformByOcelotConfig": true, @@ -239,6 +242,28 @@ } ] }, + { + "Key": "MsIncapacidadesLicencias", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsIncapacidadesLicencias", + "Version": "1.0", + "Url": "http://localhost:8177/swagger/v1/swagger.json" + } + ] + }, + { + "Key": "MsInformes", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsInformes", + "Version": "1.0", + "Url": "http://localhost:8164/swagger/v1/swagger.json" + } + ] + }, { "Key": "MsLaboratorioClinico", "TransformByOcelotConfig": true, @@ -250,6 +275,39 @@ } ] }, + { + "Key": "MsLdap", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsLdap", + "Version": "1.0", + "Url": "http://localhost:8173/swagger/v1/swagger.json" + } + ] + }, + { + "Key": "MsPing", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsPing", + "Version": "1.0", + "Url": "http://localhost:8198/swagger/v1/swagger.json" + } + ] + }, + { + "Key": "MsProcesosEstrategicos", + "TransformByOcelotConfig": true, + "Config": [ + { + "Name": "MsProcesosEstrategicos", + "Version": "1.0", + "Url": "http://localhost:8175/swagger/v1/swagger.json" + } + ] + }, { "Key": "MsProgramacionComite", "TransformByOcelotConfig": true, @@ -273,79 +331,13 @@ ] }, { - "Key": "MsAuditoriaHC", + "Key": "MsReferencia", "TransformByOcelotConfig": true, "Config": [ { - "Name": "MsAuditoriaHC", + "Name": "MsReferencia", "Version": "1.0", - "Url": "http://localhost:8157/swagger/v1/swagger.json" - } - ] - }, - { - "Key": "MsAuditoria", - "TransformByOcelotConfig": true, - "Config": [ - { - "Name": "MsAuditoria", - "Version": "1.0", - "Url": "http://localhost:8167/swagger/v1/swagger.json" - } - ] - }, - { - "Key": "MsCalidad", - "TransformByOcelotConfig": true, - "Config": [ - { - "Name": "MsCalidad", - "Version": "1.0", - "Url": "http://localhost:8172/swagger/v1/swagger.json" - } - ] - }, - { - "Key": "MsLdap", - "TransformByOcelotConfig": true, - "Config": [ - { - "Name": "MsLdap", - "Version": "1.0", - "Url": "http://localhost:8173/swagger/v1/swagger.json" - } - ] - }, - { - "Key": "MsCuentasMedicas", - "TransformByOcelotConfig": true, - "Config": [ - { - "Name": "MsCuentasMedicas", - "Version": "1.0", - "Url": "http://localhost:8174/swagger/v1/swagger.json" - } - ] - }, - { - "Key": "MsComTecCientifico", - "TransformByOcelotConfig": true, - "Config": [ - { - "Name": "MsComTecCientifico", - "Version": "1.0", - "Url": "http://localhost:8161/swagger/v1/swagger.json" - } - ] - }, - { - "Key": "MsProcesosEstrategicos", - "TransformByOcelotConfig": true, - "Config": [ - { - "Name": "MsProcesosEstrategicos", - "Version": "1.0", - "Url": "http://localhost:8175/swagger/v1/swagger.json" + "Url": "http://localhost:8160/swagger/v1/swagger.json" } ] }, @@ -360,6 +352,19 @@ } ] } - ] } + + + + //{ + // "Key": "MsComiteTC", + // "TransformByOcelotConfig": true, + // "Config": [ + // { + // "Name": "MsComiteTC", + // "Version": "1.0", + // "Url": "http://localhost:8166/swagger/v1/swagger.json" + // } + // ] + //}, diff --git a/ApiGateway/Routes/ocelot.incapacidadeslicencias.json b/ApiGateway/Routes/ocelot.incapacidadeslicencias.json new file mode 100644 index 0000000..15030da --- /dev/null +++ b/ApiGateway/Routes/ocelot.incapacidadeslicencias.json @@ -0,0 +1,76 @@ +{ + "Routes": [ + { + "SwaggerKey": "MsIncapacidadesLicencias", + "UpstreamPathTemplate": "/LicenciasInc", + "DownstreamPathTemplate": "/LicenciasInc", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8177 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "GET" + ] + }, + { + "SwaggerKey": "MsIncapacidadesLicencias", + "UpstreamPathTemplate": "/LicenciasInc", + "DownstreamPathTemplate": "/LicenciasInc", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8177 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + }, + { + "SwaggerKey": "MsIncapacidadesLicencias", + "UpstreamPathTemplate": "/LicenciasInc", + "DownstreamPathTemplate": "/LicenciasInc", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8177 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, + { + "SwaggerKey": "MsIncapacidadesLicencias", + "UpstreamPathTemplate": "/LicenciasInc/Masivo", + "DownstreamPathTemplate": "/LicenciasInc/Masivo", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8177 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "POST" + ] + } + ] +} \ No newline at end of file From 749d737a9b12b21f016a70a068af4e59633cb0a8 Mon Sep 17 00:00:00 2001 From: Luis M Date: Wed, 28 Feb 2024 14:54:25 -0500 Subject: [PATCH 12/13] + afiliados: Actualizar --- ApiGateway/Routes/ocelot.afiliados.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ApiGateway/Routes/ocelot.afiliados.json b/ApiGateway/Routes/ocelot.afiliados.json index 35785ea..66cb584 100644 --- a/ApiGateway/Routes/ocelot.afiliados.json +++ b/ApiGateway/Routes/ocelot.afiliados.json @@ -324,6 +324,24 @@ "GET" ] }, + { + "SwaggerKey": "MsAfiliados", + "UpstreamPathTemplate": "/Afiliados/ActualizarUnisalud", + "DownstreamPathTemplate": "/Afiliados/ActualizarUnisalud", + "DownstreamScheme": "http", + "DownstreamHostAndPorts": [ + { + "Host": "localhost", + "Port": 8145 + } + ], + "RouteClaimsRequirement": { + "permisos": "any" + }, + "UpstreamHttpMethod": [ + "PATCH" + ] + }, { "SwaggerKey": "MsAfiliados", "UpstreamPathTemplate": "/Afiliados/Contacto", From a4dde58e606a3e357ea2460de894e2d19ad2350f Mon Sep 17 00:00:00 2001 From: Luis M Date: Wed, 28 Feb 2024 14:54:46 -0500 Subject: [PATCH 13/13] - Rutas tarifas --- ApiGateway/Routes/ocelot.contratos.json | 90 ------------------------- 1 file changed, 90 deletions(-) diff --git a/ApiGateway/Routes/ocelot.contratos.json b/ApiGateway/Routes/ocelot.contratos.json index 00796a4..8537e00 100644 --- a/ApiGateway/Routes/ocelot.contratos.json +++ b/ApiGateway/Routes/ocelot.contratos.json @@ -234,42 +234,6 @@ "PATCH" ] }, - { - "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/Contratos/CambioEstado", - "DownstreamPathTemplate": "/Contratos/CambioEstado", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8149 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "PATCH" - ] - }, - { - "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/Contratos/EditarCUPMDT", - "DownstreamPathTemplate": "/Contratos/EditarCUPMDT", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8149 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "PATCH" - ] - }, { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/Contratos/Eliminar", @@ -396,24 +360,6 @@ "POST" ] }, - { - "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/Convenios", - "DownstreamPathTemplate": "/Convenios", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8149 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "PATCH" - ] - }, { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/Convenios/Eliminar", @@ -1476,24 +1422,6 @@ "GET" ] }, - { - "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/ServiciosPrestador/IPS", - "DownstreamPathTemplate": "/ServiciosPrestador/IPS", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8149 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "GET" - ] - }, { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/TarifasBase", @@ -1548,24 +1476,6 @@ "PATCH" ] }, - { - "SwaggerKey": "MsContratos", - "UpstreamPathTemplate": "/TarifasBase/Eliminar", - "DownstreamPathTemplate": "/TarifasBase/Eliminar", - "DownstreamScheme": "http", - "DownstreamHostAndPorts": [ - { - "Host": "localhost", - "Port": 8149 - } - ], - "RouteClaimsRequirement": { - "permisos": "any" - }, - "UpstreamHttpMethod": [ - "PATCH" - ] - }, { "SwaggerKey": "MsContratos", "UpstreamPathTemplate": "/TarifasBase/Servicios",