Skip to content

Commit e676139

Browse files
committed
Gebruik OIDC_PUBLIC_CLIENT_ID voor Keycloak config
1 parent ee29134 commit e676139

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

apps/boekhouding-backend/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ export const config = {
1313
keycloak: {
1414
issuer: `${oidcUrl}/realms/${oidcRealm}`,
1515
jwksUri: `${oidcInternalUrl}/realms/${oidcRealm}/protocol/openid-connect/certs`,
16-
audience: process.env.OIDC_CLIENT_ID || 'boekhouding-frontend',
16+
audience: process.env.OIDC_PUBLIC_CLIENT_ID || 'boekhouding-frontend',
1717
},
1818
}

containers/compose.dev.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ services:
5050
OIDC_URL: http://localhost:8080
5151
OIDC_INTERNAL_URL: http://keycloak:8080
5252
OIDC_REALM: assessment-boekhouding
53-
OIDC_CLIENT_ID: boekhouding-frontend
53+
OIDC_PUBLIC_CLIENT_ID: boekhouding-frontend
5454
NODE_ENV: development
5555
depends_on:
5656
postgres:

containers/frontend/Containerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ COPY --chmod=755 containers/frontend/entrypoint.sh /entrypoint.sh
5252

5353
ENV OIDC_URL=http://localhost:8080
5454
ENV OIDC_REALM=assessment-boekhouding
55-
ENV OIDC_CLIENT_ID=boekhouding-frontend
55+
ENV OIDC_PUBLIC_CLIENT_ID=boekhouding-frontend
5656
ENV STANDALONE_URL=/invulhulpen/
5757

5858
EXPOSE 8080
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"keycloakUrl": "${OIDC_URL}",
33
"keycloakRealm": "${OIDC_REALM}",
4-
"keycloakClientId": "${OIDC_CLIENT_ID}",
4+
"keycloakClientId": "${OIDC_PUBLIC_CLIENT_ID}",
55
"standaloneUrl": "${STANDALONE_URL}"
66
}

docs/deployment.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ ZAD ondersteunt geen init containers of jobs. De backend container draait migrat
3737

3838
De frontend fetcht `/config.json` bij het laden. Dit bestand wordt bij container start gegenereerd via `envsubst` uit env vars. In development (Vite dev server) wordt teruggevallen op `VITE_*` env vars.
3939

40-
| Variabele | Default | ZAD |
41-
|------------------|--------------------------|-------------------------------|
42-
| `OIDC_URL` | `http://localhost:8080` | Auto-inject door ZAD Keycloak |
43-
| `OIDC_REALM` | `assessment-boekhouding` | Auto-inject door ZAD Keycloak |
44-
| `OIDC_CLIENT_ID` | `boekhouding-frontend` | Auto-inject door ZAD Keycloak |
45-
| `STANDALONE_URL` | `/invulhulpen/` | Default is correct |
40+
| Variabele | Default | ZAD |
41+
|-------------------------|--------------------------|-------------------------------|
42+
| `OIDC_URL` | `http://localhost:8080` | Auto-inject door ZAD Keycloak |
43+
| `OIDC_REALM` | `assessment-boekhouding` | Auto-inject door ZAD Keycloak |
44+
| `OIDC_PUBLIC_CLIENT_ID` | `boekhouding-frontend` | Auto-inject door ZAD Keycloak |
45+
| `STANDALONE_URL` | `/invulhulpen/` | Default is correct |
4646

4747
### Backend (runtime)
4848

0 commit comments

Comments
 (0)