feat: Implement token issue detection and enhance license validation middleware; add tests for token issue message detection

This commit is contained in:
2026-04-26 08:25:53 -05:00
parent 225f020747
commit ca21cdf58d
4 changed files with 131 additions and 20 deletions

View File

@@ -79,6 +79,7 @@ services:
networks:
- backend-net
- frontend-net
- hub-net
restart: unless-stopped
entrypoint: [ "/entrypoint.sh" ]
command: [ "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload", "--log-level", "info" ]
@@ -116,6 +117,10 @@ services:
- VITE_KEYCLOAK_URL=${VITE_KEYCLOAK_URL:-http://localhost:8085/kcauth}
- VITE_KEYCLOAK_REALM=${VITE_KEYCLOAK_REALM:-master}
- VITE_KEYCLOAK_CLIENT_ID=${VITE_KEYCLOAK_CLIENT_ID:-anexo76-frontend}
# SSR server-side — usa URL interna del contenedor Keycloak (más rápido, sin salir a la LAN)
- KEYCLOAK_URL=${KEYCLOAK_URL:-http://hub-keycloak:8080/kcauth}
- KEYCLOAK_REALM=${KEYCLOAK_REALM:-master}
- KEYCLOAK_CLIENT_ID=${KEYCLOAK_CLIENT_ID:-anexo76-frontend}
# Hub — URL pública para el browser y URL interna para server-side
- VITE_HUB_URL=${VITE_HUB_URL:-http://localhost:8001}
- INTERNAL_HUB_URL=${INTERNAL_HUB_URL:-http://host.docker.internal:8001}
@@ -134,6 +139,7 @@ services:
- ./scripts/frontend-entrypoint.sh:/frontend-entrypoint.sh:ro
networks:
- frontend-net
- hub-net
restart: unless-stopped
command: [ "pnpm", "run", "dev", "--", "--host", "0.0.0.0" ]
healthcheck:
@@ -235,4 +241,7 @@ networks:
driver: bridge
ipam:
config:
- subnet: 172.22.0.0/16
- subnet: 172.22.0.0/16
hub-net:
external: true
name: aduanasoft-hub_default