diff --git a/.env b/.env index fc40a43..5f2edf9 100644 --- a/.env +++ b/.env @@ -1,3 +1,6 @@ SKIP_PREFLIGHT_CHECK=true ACCESS_API_URL=https://coleman-access-api.dev.insee.io -AUTHENTICATION_MODE=anonymous \ No newline at end of file +AUTHENTICATION_MODE=anonymous +KC_URL=http://localhost:8180/auth +KC_REALM=insee-realm +KC_CLIENT=coleman-frontend \ No newline at end of file diff --git a/.k8s/deployment.yaml b/.k8s/deployment.yaml index cb07b76..0555792 100644 --- a/.k8s/deployment.yaml +++ b/.k8s/deployment.yaml @@ -14,4 +14,4 @@ spec: spec: containers: - name: coleman-access - image: inseefr/coleman-access:0.10.4 + image: inseefr/coleman-access:0.10.5 diff --git a/package.json b/package.json index 6d27ef6..fb6cb7f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "colempub", - "version": "0.10.4", + "version": "0.10.5", "dependencies": { "axios": "^0.19.2", "bootstrap": "^3.3.7", diff --git a/public/keycloak.json b/public/keycloak.json index ddda32e..37f11f0 100644 --- a/public/keycloak.json +++ b/public/keycloak.json @@ -1,8 +1,8 @@ { - "realm": "insee-realm", - "auth-server-url": "http://localhost:8180/auth", + "realm": "${KC_REALM}", + "auth-server-url": "${KC_URL}", "ssl-required": "external", - "resource": "coleman-frontend", + "resource": "${KC_CLIENT}", "public-client": true, "confidential-port": 0 } diff --git a/scripts/env.sh b/scripts/env.sh index 4d8a177..e6ae720 100644 --- a/scripts/env.sh +++ b/scripts/env.sh @@ -19,4 +19,6 @@ do done < .env envsubst < "./configuration.json" > "configuration.temp" +envsubst < "./keycloak.json" > "keycloak.temp" mv configuration.temp configuration.json +mv keycloak.temp keycloak.json