Problema ingreso url/proveedor (RESPONDIDO)

Buenos dias, estamos en la ultima version de eei y queremos agregar el modulo de proveedores.
Siguiendo el instructivo los contenedores se levantaron correctamente, pero al intentar acceder al portal, se genera un bucle en la autenticación SAML. Agradeceria ayuda para solucionarlo.
el contenedor de proveedores arroja esto en el log

[Thu Jul 31 09:46:51.898719 2025] [php7:notice] [pid 15290] [client 10.0.3.207:43568] [2025-07-31 09:46:51] security.DEBUG: Calling Authentication entry point. [] [], referer: https://miportal-dev.unlam.edu.ar/idp/saml2/idp/SSOService.php?SAMLRequest=lVPbjtowEH3nK1Dec%2B0m7FoQiUIvSBQiku1DX6qJPRRLiZ3aDkv%2Fvs5lu7TaotYvScZzzpw5M5lrqKuGLFtzEgf83qI2k6k9l7oSmvSXC6dVgkjQXBMBNWpiKMmXn7Yk8gLSKGkklZXzB%2Bw2CrRGZbgUA2yzXjj73bvt%2FsNm9zU5BmWQ4GyWBPEsiUtGkwcMygjhPokgpiFASe8e7gfoZ1Ta8iwcS%2BtMBjatW9wIbUAYGw%2Bi2A1m7puwCCNyl5A4%2FDJA17ZZLsD08JMxjSa%2BX%2FNGKgOVy%2FDstaKC2kPWeqB8zhq%2F6yzq3%2FJ8n6M6c4pec2oGwmz04i0XjItvty0ohyRNPhZF5mb7vBhIls%2FWrKTQbY1qLPN42P6LSjuPMyKTqtfqA9VO2vPOu2%2FSe6PS%2F%2Bap0QADA3P%2FmuaFuCE72%2BFmncmK0x99vDvvparB%2FN2I0Av7CGfusU8lrdANUn7kyJxfNMuqkk8rhWBw4RjVojP1fys%2Bri6yfpGtcwYvZrqSdQOK626%2BeAFqRite7LhOX1V2Kw94TG8uLiW0y7PhzD6epGLd1JHa2oUCK976OZr0Kvmg2r8hO508X1%2F%2FlelP&RelayState=https%3A%2F%2Fmiportal-dev.unlam.edu.ar%2Fproveedor%2Fsaml%2Flogin

10.0.3.207 - - [31/Jul/2025:09:46:51 -0300] "POST /proveedor/saml/acs HTTP/1.1" 302 462

10.0.3.207 - - [31/Jul/2025:09:46:51 -0300] "GET /proveedor/saml/login HTTP/1.1" 302 -

[Thu Jul 31 09:46:52.274137 2025] [php7:notice] [pid 15290] [client 10.0.3.207:43568] [2025-07-31 09:46:52] request.INFO: Matched route "saml_acs". {"route":"saml_acs","route_parameters":{"_route":"saml_acs","_controller":"Hslavich\\\\OneloginSamlBundle\\\\Controller\\\\SamlController::assertionConsumerServiceAction"},"request_uri":"https://miportal-dev.unlam.edu.ar/proveedor/saml/acs","method":"POST"} [], referer: https://miportal-dev.unlam.edu.ar/idp/saml2/idp/SSOService.php?SAMLRequest=lVNNj5swEL3nV0Tc%2BTDsZnetBClN%2BhEpTVCgPfRSGTw0lsB2bZPN%2Fvsaw3az1TZqfQHG8968eTPMNWkbiZedOfID%2FOxAm8nUnnPbcI3d5cLrFMeCaKYxJy1obCqcLz9vcRxEWCphRCUa7w%2FYdRTRGpRhgg%2BwzXrh7Xfvt%2FuPm913OktQFJd1jRBFD6imN3WJ6pI8QJ0kiCb3s%2FIuiu7RAP0KSluehWdpvcnApnUHG64N4cbGo%2FjWj%2B78BBUoxjczfIu%2BDdC1bZZxYhz8aIzUOAxbJoUypPEpnIKON6QNgHYBUSGjMuw7i91bnu9zUCdWQSCPciDMRi%2FeMU4Z%2F3HdgnJI0vhTUWR%2Bts%2BLgWT5bM1KcN21oMYyXw7bf1Fp53ECoEI5rSGptJc63nn%2FjZ03Kv1vnhYMocSQeXhJ80Is8c52uFlnomHVk4v354NQLTF%2FNwIFyEUY9WuXijuuJVSsZkC93zTLphGPKwXEwMIzqgNvGr4qPq4uULfI1jkDZzNdiVYSxXQ%2FXziTyoxWvNhxmb5q7FYeoE6vLm6Fqz7PhjP7eBSK9lOHytYuFLHirZ%2BjSW%2BSD6rDK7LTyfP15V%2BZ%2FgI%3D&RelayState=https%3A%2F%2Fmiportal-dev.unlam.edu.ar%2Fproveedor%2Fsaml%2Flogin

[Thu Jul 31 09:46:52.274205 2025] [php7:notice] [pid 15290] [client 10.0.3.207:43568] [2025-07-31 09:46:52] bundle-arai.INFO: Se obtienen cuentas del usuario {"recurso":"usuarios/fsidorovich/cuentas","usuario":"fsidorovich","bundle":"arai"} [], referer: https://miportal-dev.unlam.edu.ar/idp/saml2/idp/SSOService.php?SAMLRequest=lVNNj5swEL3nV0Tc%2BTDsZnetBClN%2BhEpTVCgPfRSGTw0lsB2bZPN%2Fvsaw3az1TZqfQHG8968eTPMNWkbiZedOfID%2FOxAm8nUnnPbcI3d5cLrFMeCaKYxJy1obCqcLz9vcRxEWCphRCUa7w%2FYdRTRGpRhgg%2BwzXrh7Xfvt%2FuPm913OktQFJd1jRBFD6imN3WJ6pI8QJ0kiCb3s%2FIuiu7RAP0KSluehWdpvcnApnUHG64N4cbGo%2FjWj%2B78BBUoxjczfIu%2BDdC1bZZxYhz8aIzUOAxbJoUypPEpnIKON6QNgHYBUSGjMuw7i91bnu9zUCdWQSCPciDMRi%2FeMU4Z%2F3HdgnJI0vhTUWR%2Bts%2BLgWT5bM1KcN21oMYyXw7bf1Fp53ECoEI5rSGptJc63nn%2FjZ03Kv1vnhYMocSQeXhJ80Is8c52uFlnomHVk4v354NQLTF%2FNwIFyEUY9WuXijuuJVSsZkC93zTLphGPKwXEwMIzqgNvGr4qPq4uULfI1jkDZzNdiVYSxXQ%2FXziTyoxWvNhxmb5q7FYeoE6vLm6Fqz7PhjP7eBSK9lOHytYuFLHirZ%2BjSW%2BSD6rDK7LTyfP15V%2BZ%2FgI%3D&RelayState=https%3A%2F%2Fmiportal-dev.unlam.edu.ar%2Fproveedor%2Fsaml%2Flogin

[Thu Jul 31 09:46:52.274247 2025] [php7:notice] [pid 15290] [client 10.0.3.207:43568] [2025-07-31 09:46:52] app.ERROR: Client error: `GET https://miportal-dev.unlam.edu.ar/usuarios/fsidorovich/cuentas` resulted in a `404 Not Found` response: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found (truncated...)  [] [], referer: https://miportal-dev.unlam.edu.ar/idp/saml2/idp/SSOService.php?SAMLRequest=lVNNj5swEL3nV0Tc%2BTDsZnetBClN%2BhEpTVCgPfRSGTw0lsB2bZPN%2Fvsaw3az1TZqfQHG8968eTPMNWkbiZedOfID%2FOxAm8nUnnPbcI3d5cLrFMeCaKYxJy1obCqcLz9vcRxEWCphRCUa7w%2FYdRTRGpRhgg%2BwzXrh7Xfvt%2FuPm913OktQFJd1jRBFD6imN3WJ6pI8QJ0kiCb3s%2FIuiu7RAP0KSluehWdpvcnApnUHG64N4cbGo%2FjWj%2B78BBUoxjczfIu%2BDdC1bZZxYhz8aIzUOAxbJoUypPEpnIKON6QNgHYBUSGjMuw7i91bnu9zUCdWQSCPciDMRi%2FeMU4Z%2F3HdgnJI0vhTUWR%2Bts%2BLgWT5bM1KcN21oMYyXw7bf1Fp53ECoEI5rSGptJc63nn%2FjZ03Kv1vnhYMocSQeXhJ80Is8c52uFlnomHVk4v354NQLTF%2FNwIFyEUY9WuXijuuJVSsZkC93zTLphGPKwXEwMIzqgNvGr4qPq4uULfI1jkDZzNdiVYSxXQ%2FXziTyoxWvNhxmb5q7FYeoE6vLm6Fqz7PhjP7eBSK9lOHytYuFLHirZ%2BjSW%2BSD6rDK7LTyfP15V%2BZ%2FgI%3D&RelayState=https%3A%2F%2Fmiportal-dev.unlam.edu.ar%2Fproveedor%2Fsaml%2Flogin

[Thu Jul 31 09:46:52.286493 2025] [php7:notice] [pid 15290] [client 10.0.3.207:43568] [2025-07-31 09:46:52] php.CRITICAL: Uncaught Exception: An exception has been thrown during the rendering of a template ("The token storage contains no authentication token. One possible reason may be that there is no firewall configured for this URL."). {"exception":"[object] (Twig\\\\Error\\\\RuntimeError(code: 0): An exception has been thrown during the rendering of a template (\\"The token storage contains no authentication token. One possible reason may be that there is no firewall configured for this URL.\\"). at /usr/local/app/src-bundles/CoreBundle/Resources/views/Layout/_leftmenu.html.twig:20, Symfony\\\\Component\\\\Security\\\\Core\\\\Exception\\\\AuthenticationCredentialsNotFoundException(code: 0): The token storage contains no authentication token. One possible reason may be that there is no firewall configured for this URL. at /usr/local/app/vendor/symfony/security-core/Authorization/AuthorizationChecker.php:49)"} [], referer: https://miportal-dev.unlam.edu.ar/idp/saml2/idp/SSOService.php?SAMLRequest=lVNNj5swEL3nV0Tc%2BTDsZnetBClN%2BhEpTVCgPfRSGTw0lsB2bZPN%2Fvsaw3az1TZqfQHG8968eTPMNWkbiZedOfID%2FOxAm8nUnnPbcI3d5cLrFMeCaKYxJy1obCqcLz9vcRxEWCphRCUa7w%2FYdRTRGpRhgg%2BwzXrh7Xfvt%2FuPm913OktQFJd1jRBFD6imN3WJ6pI8QJ0kiCb3s%2FIuiu7RAP0KSluehWdpvcnApnUHG64N4cbGo%2FjWj%2B78BBUoxjczfIu%2BDdC1bZZxYhz8aIzUOAxbJoUypPEpnIKON6QNgHYBUSGjMuw7i91bnu9zUCdWQSCPciDMRi%2FeMU4Z%2F3HdgnJI0vhTUWR%2Bts%2BLgWT5bM1KcN21oMYyXw7bf1Fp53ECoEI5rSGptJc63nn%2FjZ03Kv1vnhYMocSQeXhJ80Is8c52uFlnomHVk4v354NQLTF%2FNwIFyEUY9WuXijuuJVSsZkC93zTLphGPKwXEwMIzqgNvGr4qPq4uULfI1jkDZzNdiVYSxXQ%2FXziTyoxWvNhxmb5q7FYeoE6vLm6Fqz7PhjP7eBSK9lOHytYuFLHirZ%2BjSW%2BSD6rDK7LTyfP15V%2BZ%2FgI%3D&RelayState=https%3A%2F%2Fmiportal-dev.unlam.edu.ar%2Fproveedor%2Fsaml%2Flogin

[Thu Jul 31 09:46:52.286667 2025] [php7:notice] [pid 15290] [client 10.0.3.207:43568] [2025-07-31 09:46:52] security.INFO: An AuthenticationException was thrown; redirecting to authentication entry point. {"exception":"[object] (Symfony\\\\Component\\\\Security\\\\Core\\\\Exception\\\\AuthenticationCredentialsNotFoundException(code: 0): The token storage contains no authentication token. One possible reason may be that there is no firewall configured for this URL. at /usr/local/app/vendor/symfony/security-core/Authorization/AuthorizationChecker.php:49)"} [], referer: https://miportal-dev.unlam.edu.ar/idp/saml2/idp/SSOService.php?SAMLRequest=lVNNj5swEL3nV0Tc%2BTDsZnetBClN%2BhEpTVCgPfRSGTw0lsB2bZPN%2Fvsaw3az1TZqfQHG8968eTPMNWkbiZedOfID%2FOxAm8nUnnPbcI3d5cLrFMeCaKYxJy1obCqcLz9vcRxEWCphRCUa7w%2FYdRTRGpRhgg%2BwzXrh7Xfvt%2FuPm913OktQFJd1jRBFD6imN3WJ6pI8QJ0kiCb3s%2FIuiu7RAP0KSluehWdpvcnApnUHG64N4cbGo%2FjWj%2B78BBUoxjczfIu%2BDdC1bZZxYhz8aIzUOAxbJoUypPEpnIKON6QNgHYBUSGjMuw7i91bnu9zUCdWQSCPciDMRi%2FeMU4Z%2F3HdgnJI0vhTUWR%2Bts%2BLgWT5bM1KcN21oMYyXw7bf1Fp53ECoEI5rSGptJc63nn%2FjZ03Kv1vnhYMocSQeXhJ80Is8c52uFlnomHVk4v354NQLTF%2FNwIFyEUY9WuXijuuJVSsZkC93zTLphGPKwXEwMIzqgNvGr4qPq4uULfI1jkDZzNdiVYSxXQ%2FXziTyoxWvNhxmb5q7FYeoE6vLm6Fqz7PhjP7eBSK9lOHytYuFLHirZ%2BjSW%2BSD6rDK7LTyfP15V%2BZ%2FgI%3D&RelayState=https%3A%2F%2Fmiportal-dev.unlam.edu.ar%2Fproveedor%2Fsaml%2Flogin```

Hola Federico,

Por lo que veo el problema parece ser que la url de conexion a Arai-Usuarios es incorrecta.
Deberian chequear la url definida en prod/modulos/proveedores/portal.env para la variable de entorno API_USUARIOS_URL
Podrian chequear la misma variable de entorno en prod/arai/huarpe.env para mantenerla igual. Tengan en cuenta que la url definida alli puede ser la url interna del servicio, ya que si se configura la url externa es necesario habilitarla en 1er lugar entre las reglas de traefik como se indica aqui: Desplegar Araí | Solución de Expediente Electrónico Integrado

Saludos.

Pablo, buenas, gracias por la respuesta…chequee lo que dijiste y no veo problemas ahi .
Las lineas estan descomentadas
labels:
- “traefik.enable=true”
- “traefik.http.routers.api-usuarios.entrypoints=web-secured”
- “traefik.http.routers.api-usuarios.rule=Host(miportal-dev.unlam.edu.ar) && PathPrefix(/usuarios-api)”
- “traefik.http.routers.api-usuarios.tls=true”
- “traefik.http.services.api-usuarios.loadbalancer.server.port=8080”
- “traefik.http.middlewares.api-usuarios-strip.stripprefix.prefixes=/usuarios-api”
- “traefik.http.middlewares.api-usuarios-add.addprefix.prefix=/api/v1”
- “traefik.http.routers.api-usuarios.middlewares=api-usuarios-strip,api-usuarios-add,security-headers@file”

y la url esta igual tanto en huarpe como en portal.env. (API_USUARIOS_URL: https://miportal-dev.unlam.edu.ar/usuarios-api)
como dato te comento que si estoy deslogueado de arai-usuarios y quiero acceder a miportal-dev.unlam.edu.ar/proveedor, me lleva al login de usuarios, y cuando me logueo entre en el loop del saml.

Hola Federico,

Podrias probar hacer un curl a la API de usuarios (https://miportal-dev.unlam.edu.ar/usuarios/fsidorovich/cuentas) desde dentro del contenedor de Huarpe y desde dentro del contenedor del Portal del proveedor? En los logs que enviaste en el 1er mensaje esa petición falla desde el portal del proveedor, seria interesante ver si la misma peticion funciona desde huarpe.

Saludos.

Pablo hice el curl y en ambos casos da error 404

bash-5.1# curl https://miportal-dev.unlam.edu.ar/usuarios/fsidorovich/cuentas

404 Not Found

Not Found

The requested URL was not found on this server.

Hola Federico,

Como la API de usuarios en esa version retorna un 404 si no se encuentran cuentas del usuario, para tener claro si el 404 es porque no existen cuentas o porque no se puede llegar a la API, podrías probar un curl al recurso info. Por ejemplo: http://URL/api-usuarios/v1/info

Adicionalmente, podrias pasarnos el log del contenedor de la API de usuarios. Si te parece, esto lo podrías adjuntar a un GDS y lo seguimos por ese medio.

Saludos.

Pablo buen dia, te paso por un lado la respuesta del curl
bash-5.1# curl http://miportal-dev.unlam.edu.ar/api-usuarios/v1/info
Found

por otro lado abri el gdc tal como dijiste, el numero es el 77795.

Saludos