Skip to content

Commit 77378de

Browse files
committed
add extra uris
1 parent 5f1c2a4 commit 77378de

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎packages/system/keycloak-configure/templates/configure-kk.yaml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{{- $cozyConfig := lookup "v1" "ConfigMap" "cozy-system" "cozystack" }}
22
{{- $host := index $cozyConfig.data "root-host" }}
3+
{{- $extraRedirectUris := splitList "," ((index $cozyConfig.data "extra-keycloak-redirect-uri-for-dashboard") | default "") }}
34
{{- $rootSaConfigMap := lookup "v1" "ConfigMap" "kube-system" "kube-root-ca.crt" }}
45
{{- $k8sCa := index $rootSaConfigMap.data "ca.crt" | b64enc }}
56

@@ -190,6 +191,9 @@ spec:
190191
- kubernetes-client
191192
redirectUris:
192193
- "http://dashboard.{{ $host }}/oauth2/callback/*"
194+
{{- range $i, $v := $extraRedirectUris }}
195+
- "{{ $v }}"
196+
{{- end }}
193197

194198
---
195199

0 commit comments

Comments
 (0)