json contratos y email, se agregan excepciones token
This commit is contained in:
parent
c750ae7f0f
commit
f2efc96945
@ -26,7 +26,10 @@ namespace ApiGateway
|
|||||||
|
|
||||||
// Excepcion para login, no requiere token
|
// Excepcion para login, no requiere token
|
||||||
if (String.Equals(calledUrl, "/Ext/Login") ||
|
if (String.Equals(calledUrl, "/Ext/Login") ||
|
||||||
String.Equals(calledUrl, "/Auth/Login"))
|
String.Equals(calledUrl, "/Auth/Login") ||
|
||||||
|
String.Equals(calledUrl, "/Auth/Proveedor") ||
|
||||||
|
String.Equals(calledUrl, "/Email")
|
||||||
|
)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
||||||
|
@ -58,30 +58,42 @@
|
|||||||
"Url": "http://localhost:8199/swagger/v1/swagger.json"
|
"Url": "http://localhost:8199/swagger/v1/swagger.json"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"Key": "Email",
|
||||||
|
"TransformByOcelotConfig": true,
|
||||||
|
"Config": [
|
||||||
|
{
|
||||||
|
"Name": "Email",
|
||||||
|
"Version": "1.0",
|
||||||
|
"Url": "http://localhost:8170/swagger/v1/swagger.json"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"Key": "MsContratos",
|
||||||
|
"TransformByOcelotConfig": true,
|
||||||
|
"Config": [
|
||||||
|
{
|
||||||
|
"Name": "MsContratos",
|
||||||
|
"Version": "1.0",
|
||||||
|
"Url": "http://localhost:8149/swagger/v1/swagger.json"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
//{
|
//{
|
||||||
// "Key": "MsContratos",
|
// "Key": "apitest",
|
||||||
// "TransformByOcelotConfig": true,
|
// "TransformByOcelotConfig": true,
|
||||||
// "Config": [
|
// "Config": [
|
||||||
// {
|
// {
|
||||||
// "Name": "MsContratos",
|
// "Name": "ApiTest",
|
||||||
// "Version": "1.0",
|
// "Version": "1.0",
|
||||||
// "Url": "http://localhost:5102/swagger/v1/swagger.json"
|
// "Url": "http://localhost:5041/swagger/v1/swagger.json"
|
||||||
// }
|
// }
|
||||||
// ]
|
// ]
|
||||||
//},
|
|
||||||
|
|
||||||
//{
|
|
||||||
// "Key": "apitest",
|
|
||||||
// "TransformByOcelotConfig": true,
|
|
||||||
// "Config": [
|
|
||||||
// {
|
|
||||||
// "Name": "ApiTest",
|
|
||||||
// "Version": "1.0",
|
|
||||||
// "Url": "http://localhost:5041/swagger/v1/swagger.json"
|
|
||||||
// }
|
|
||||||
// ]
|
|
||||||
|
|
||||||
|
|
||||||
]
|
]
|
||||||
|
@ -21,6 +21,26 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"SwaggerKey": "MsAdminUsuarios",
|
||||||
|
|
||||||
|
"UpstreamPathTemplate": "/Auth/Proveedor",
|
||||||
|
"UpstreamHttpMethod": [ "POST" ],
|
||||||
|
|
||||||
|
"DownstreamPathTemplate": "/Auth/Proveedor",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "localhost",
|
||||||
|
"Port": 8151
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
|
"RouteClaimsRequirement": {
|
||||||
|
"permisos": "any"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -170,10 +170,28 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"SwaggerKey": "Afiliados",
|
||||||
|
"UpstreamPathTemplate": "/Afiliados",
|
||||||
|
"UpstreamHttpMethod": [ "Patch" ],
|
||||||
|
|
||||||
|
"DownstreamPathTemplate": "/Afiliados",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "localhost",
|
||||||
|
"Port": 8145
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"RouteClaimsRequirement": {
|
||||||
|
"permisos": "any"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"SwaggerKey": "Afiliados",
|
"SwaggerKey": "Afiliados",
|
||||||
"UpstreamPathTemplate": "/Afiliados/AfiliadosUsuario",
|
"UpstreamPathTemplate": "/Afiliados/GrupoFamiliar",
|
||||||
"UpstreamHttpMethod": [ "Get" ],
|
"UpstreamHttpMethod": [ "Get" ],
|
||||||
|
|
||||||
"DownstreamPathTemplate": "/Afiliados/AfiliadosUsuario",
|
"DownstreamPathTemplate": "/Afiliados/AfiliadosUsuario",
|
||||||
@ -301,6 +319,51 @@
|
|||||||
"RouteClaimsRequirement": {
|
"RouteClaimsRequirement": {
|
||||||
"permisos": "any"
|
"permisos": "any"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
"SwaggerKey": "Afiliados",
|
||||||
|
"UpstreamPathTemplate": "/Archivos/Afiliado",
|
||||||
|
"UpstreamHttpMethod": [ "GET" ],
|
||||||
|
|
||||||
|
"DownstreamPathTemplate": "/Archivos/ArchivosUsuario",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "localhost",
|
||||||
|
"Port": 8145
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"RouteClaimsRequirement": {
|
||||||
|
"permisos": "any"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"SwaggerKey": "Afiliados",
|
||||||
|
"UpstreamPathTemplate": "/Declaratorias/Afiliado",
|
||||||
|
"UpstreamHttpMethod": [ "GET" ],
|
||||||
|
|
||||||
|
"DownstreamPathTemplate": "/DeclaratoriasPorAfiliado/DeclaratoriasUsuario",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "localhost",
|
||||||
|
"Port": 8145
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"RouteClaimsRequirement": {
|
||||||
|
"permisos": "any"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
22
ApiGateway/Routes/ocelot.email.json
Normal file
22
ApiGateway/Routes/ocelot.email.json
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"Routes": [
|
||||||
|
|
||||||
|
{
|
||||||
|
"SwaggerKey": "Email",
|
||||||
|
"UpstreamPathTemplate": "/Email",
|
||||||
|
"UpstreamHttpMethod": [ "POST" ],
|
||||||
|
|
||||||
|
"DownstreamPathTemplate": "/api/Email",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "localhost",
|
||||||
|
"Port": 8170
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"RouteClaimsRequirement": {
|
||||||
|
"permisos": "any"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user