revert(auth): restaurar client_id a anexo76-frontend
Anexo76 debe tener su propio cliente en Keycloak (no compartir hub-frontend). Misma sesión SSO para el usuario, pero cliente separado por app. El cliente anexo76-frontend debe crearse en Keycloak con: - Valid redirect URIs: https://anexo76-dev.aduanasoft.com/* - Web origins: https://anexo76-dev.aduanasoft.com Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -273,7 +273,7 @@ pipeline {
|
||||
docker build --progress=plain \
|
||||
--build-arg VITE_API_URL=\${A76_URL}/api/ \
|
||||
--build-arg VITE_KEYCLOAK_URL=\${A76_URL}/kcauth/ \
|
||||
--build-arg VITE_KEYCLOAK_CLIENT_ID=hub-frontend \
|
||||
--build-arg VITE_KEYCLOAK_CLIENT_ID=anexo76-frontend \
|
||||
--build-arg INTERNAL_API_URL=http://backend:3467/api/ \
|
||||
-t ${IMAGE_FRONTEND}:${env.APP_VERSION} \
|
||||
-t ${IMAGE_FRONTEND}:latest \
|
||||
|
||||
@@ -12,10 +12,10 @@ INTERNAL_HUB_URL=http://localhost:8001
|
||||
# Keycloak
|
||||
VITE_KEYCLOAK_URL=http://localhost:8085/kcauth
|
||||
VITE_KEYCLOAK_REALM=master
|
||||
VITE_KEYCLOAK_CLIENT_ID=hub-frontend
|
||||
VITE_KEYCLOAK_CLIENT_ID=anexo76-frontend
|
||||
KEYCLOAK_URL=http://localhost:8085/kcauth
|
||||
KEYCLOAK_REALM=master
|
||||
KEYCLOAK_CLIENT_ID=hub-frontend
|
||||
KEYCLOAK_CLIENT_ID=anexo76-frontend
|
||||
# KEYCLOAK_CLIENT_SECRET= # solo si el cliente KC no es público
|
||||
|
||||
# SvelteKit — necesario para cookies secure y URLs SSR correctas
|
||||
|
||||
@@ -22,7 +22,7 @@ ENV VITE_API_URL=${VITE_API_URL}
|
||||
ARG VITE_KEYCLOAK_URL
|
||||
ENV VITE_KEYCLOAK_URL=${VITE_KEYCLOAK_URL}
|
||||
|
||||
ARG VITE_KEYCLOAK_CLIENT_ID=hub-frontend
|
||||
ARG VITE_KEYCLOAK_CLIENT_ID=anexo76-frontend
|
||||
ENV VITE_KEYCLOAK_CLIENT_ID=${VITE_KEYCLOAK_CLIENT_ID}
|
||||
|
||||
ARG INTERNAL_API_URL
|
||||
|
||||
@@ -93,7 +93,7 @@ export function getKeycloakRealm(): string {
|
||||
}
|
||||
|
||||
export function getKeycloakClientId(): string {
|
||||
return (env.KEYCLOAK_CLIENT_ID || env.VITE_KEYCLOAK_CLIENT_ID || 'hub-frontend').trim();
|
||||
return (env.KEYCLOAK_CLIENT_ID || env.VITE_KEYCLOAK_CLIENT_ID || 'anexo76-frontend').trim();
|
||||
}
|
||||
|
||||
export function getCleanReturnPath(url: URL): string {
|
||||
|
||||
Reference in New Issue
Block a user