Estimados, buenos días
Configuramos Huarpe y lo sincronizamos con SIU Mapuche siguiendo la documentación oficial. También Importamos los usuarios y cuentas. Al loguear desde Huarpe se puede ingresar al SIU Mapuche si problemas.
Ahora estamos configurando los servicios que brinda Huarpe para obtener los recibos de sueldo y no nos trae la información desde SIU Mapuche.
Probamos conectarnos a la API de mapuche directamente con la URL con usuario y contraseña generado en el secret y accedemos sin problemas. Pero al momento de hacer clic en alguna de las opciones desde HUARPE obtenemos el siguiente error (adjunto captura)
También adjunto el log que nos arroja huarpe_webapp para ver si con estos datos nos pueden dar una mano.
huarpe_webapp.1.k5wamft1j5q9@srv-prod-sudocu-swarm-2 | [Tue May 17 13:02:09.214316 2022] [php7:notice] [pid 20] [client 10.0.1.3:38344] [2022-05-17 16:02:09] security.DEBUG: Read existing security token from the session. {"key":"_security_app","token_class":"Hslavich\\\\OneloginSamlBundle\\\\Security\\\\Authentication\\\\Token\\\\SamlToken"} []
huarpe_webapp.1.k5wamft1j5q9@srv-prod-sudocu-swarm-2 | [Tue May 17 13:02:09.214358 2022] [php7:notice] [pid 20] [client 10.0.1.3:38344] [2022-05-17 16:02:09] security.DEBUG: User was reloaded from a user provider. {"provider":"CoreBundle\\\\Security\\\\User\\\\SimpleSamlUserProvider","username":"fulano.fulano2"} []
huarpe_webapp.1.k5wamft1j5q9@srv-prod-sudocu-swarm-2 | [Tue May 17 13:02:09.214386 2022] [php7:notice] [pid 20] [client 10.0.1.3:38344] [2022-05-17 16:02:09] app.ERROR: Client error: `GET https://mapuche-test.unahur.edu.ar/siu/mapuche/rest/agentes/155/familiares` resulted in a `401 Unauthorized` response: { "mensaje": "autenticaci\\ufffdn cancelada" } [] []
huarpe_webapp.1.k5wamft1j5q9@srv-prod-sudocu-swarm-2 | [Tue May 17 13:02:09.219958 2022] [php7:notice] [pid 20] [client 10.0.1.3:38344] [2022-05-17 16:02:09] security.DEBUG: Stored the security token in the session. {"key":"_security_app"} []
huarpe_webapp.1.k5wamft1j5q9@srv-prod-sudocu-swarm-2 | 10.0.1.3 - - [17/May/2022:13:02:09 -0300] "GET /servicios/mapuche/agente/familiares HTTP/1.1" 500 6927
huarpe_webapp.1.k5wamft1j5q9@srv-prod-sudocu-swarm-2 | [Tue May 17 13:02:16.307801 2022] [php7:notice] [pid 18] [client 10.0.1.3:38352] [2022-05-17 16:02:16] request.INFO: Matched route "mapuche_recibos". {"route":"mapuche_recibos","route_parameters":{"_route":"mapuche_recibos","_controller":"SIU\\\\MapucheBundle\\\\Controller\\\\MapucheController::recibosAction","pagina":1},"request_uri":"https://huarpetest.unahur.edu.ar/servicios/mapuche/recibos","method":"GET"} [], referer: https://huarpetest.unahur.edu.ar/servicios/mapuche/agente/familiares
huarpe_webapp.1.k5wamft1j5q9@srv-prod-sudocu-swarm-2 | [Tue May 17 13:02:16.307957 2022] [php7:notice] [pid 18] [client 10.0.1.3:38352] [2022-05-17 16:02:16] security.DEBUG: Read existing security token from the session. {"key":"_security_app","token_class":"Hslavich\\\\OneloginSamlBundle\\\\Security\\\\Authentication\\\\Token\\\\SamlToken"} [], referer: https://huarpetest.unahur.edu.ar/servicios/mapuche/agente/familiares
huarpe_webapp.1.k5wamft1j5q9@srv-prod-sudocu-swarm-2 | [Tue May 17 13:02:16.308013 2022] [php7:notice] [pid 18] [client 10.0.1.3:38352] [2022-05-17 16:02:16] security.DEBUG: User was reloaded from a user provider. {"provider":"CoreBundle\\\\Security\\\\User\\\\SimpleSamlUserProvider","username":"fulano.fulano2"} [], referer: https://huarpetest.unahur.edu.ar/servicios/mapuche/agente/familiares
huarpe_webapp.1.k5wamft1j5q9@srv-prod-sudocu-swarm-2 | [Tue May 17 13:02:16.308060 2022] [php7:notice] [pid 18] [client 10.0.1.3:38352] [2022-05-17 16:02:16] app.ERROR: Client error: `GET https://mapuche-test.unahur.edu.ar/siu/mapuche/rest/agentes/155/recibos` resulted in a `401 Unauthorized` response: { "mensaje": "autenticaci\\ufffdn cancelada" } [] [], referer: https://huarpetest.unahur.edu.ar/servicios/mapuche/agente/familiares
huarpe_webapp.1.k5wamft1j5q9@srv-prod-sudocu-swarm-2 | [Tue May 17 13:02:16.314118 2022] [php7:notice] [pid 18] [client 10.0.1.3:38352] [2022-05-17 16:02:16] security.DEBUG: Stored the security token in the session. {"key":"_security_app"} [], referer: https://huarpetest.unahur.edu.ar/servicios/mapuche/agente/familiares
Muchas Gracias