Skip to content

Commit

Permalink
Added oidc config.
Browse files Browse the repository at this point in the history
  • Loading branch information
dasscheman committed Jul 2, 2024
1 parent c120eaf commit 66ee4ce
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
4 changes: 3 additions & 1 deletion openshift/config/06_sample-app-cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ data:
database-type: mysql
database-host: mariadb-sample
database-port-number: '3306'
database-name: sample-database
database-name: sample-database
oidc-provider-url: https://login.acc.uu.nl/nidp/oauth/nam
oidc-slo-link: https://login.acc.uu.nl/nidp/app/logout
22 changes: 21 additions & 1 deletion openshift/config/07_sample-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
spec:
containers:
- name: sample-app
image: ghcr.io/utrechtuniversity/fsw-openshift:pr6
image: ghcr.io/utrechtuniversity/fsw-openshift:develop
ports:
- containerPort: 9000
env:
Expand All @@ -41,11 +41,31 @@ spec:
configMapKeyRef:
name: sample-config
key: database-name
- name: OIDC_PROVIDER_URL
valueFrom:
configMapKeyRef:
name: sample-config
key: oidc-provider-url
- name: OIDC_SLO_LINK
valueFrom:
configMapKeyRef:
name: sample-config
key: oidc-slo-link
- name: LARAVEL_DATABASE_USER
valueFrom:
configMapKeyRef:
name: mariadb-config
key: mariadb-user
- name: OIDC_CLIENT_ID
valueFrom:
secretKeyRef:
name: sample-app-secret
key: oidc-client-id
- name: OIDC_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: sample-app-secret
key: oidc-client-secret
- name: LARAVEL_DATABASE_PASSWORD
valueFrom:
secretKeyRef:
Expand Down
2 changes: 1 addition & 1 deletion openshift/config/10_sample-front.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
spec:
containers:
- name: sample-front
image: ghcr.io/utrechtuniversity/fsw-openshift-frontend:pr-6
image: ghcr.io/utrechtuniversity/fsw-openshift-frontend:develop
ports:
- containerPort: 7050
env:
Expand Down

0 comments on commit 66ee4ce

Please sign in to comment.