Skip to content
Snippets Groups Projects
Commit 14cc7fc5 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4939: OZG-5045: Use a default Origin and if configured in the values, also additional ones.

parent 128a189b
No related branches found
No related tags found
No related merge requests found
...@@ -10,14 +10,13 @@ spec: ...@@ -10,14 +10,13 @@ spec:
keep_after_delete: {{ $.Values.sso.keep_after_delete | default false }} keep_after_delete: {{ $.Values.sso.keep_after_delete | default false }}
client_name: {{ $client.client_name }} client_name: {{ $client.client_name }}
client_base_url: https://{{ include "app.baseDomain" $ }} client_base_url: https://{{ include "app.baseDomain" $ }}
{{- if $client.client_web_origins }}
client_web_origins: client_web_origins:
- https://{{ include "app.baseDomain" $ }}
{{- if $client.client_web_origins }}
{{- with $client.client_web_origins }} {{- with $client.client_web_origins }}
{{ toYaml . | indent 4 }} {{ toYaml . | indent 4 }}
{{- end }} {{- end }}
{{- else }}
client_web_origins:
- https://{{ include "app.baseDomain" $ }}
{{- end }} {{- end }}
client_redirect_uris: client_redirect_uris:
- https://{{ include "app.baseDomain" $ }} - https://{{ include "app.baseDomain" $ }}
......
...@@ -27,7 +27,7 @@ release: ...@@ -27,7 +27,7 @@ release:
name: administration name: administration
namespace: by-helm-test namespace: by-helm-test
templates: templates:
- templates/keycloak-client-crd.yaml - templates/keycloak_client_crd.yaml
set: set:
ozgcloud: ozgcloud:
bundesland: by bundesland: by
...@@ -114,7 +114,7 @@ tests: ...@@ -114,7 +114,7 @@ tests:
value: value:
- https://helm-admin.ozg-sh.de - https://helm-admin.ozg-sh.de
- https://helm-admin.ozg-sh.de/* - https://helm-admin.ozg-sh.de/*
- it: should override client web origins - it: should use additional client web origins
set: set:
sso: sso:
keycloak_clients: keycloak_clients:
...@@ -126,6 +126,7 @@ tests: ...@@ -126,6 +126,7 @@ tests:
- equal: - equal:
path: spec.client_web_origins path: spec.client_web_origins
value: value:
- https://helm-admin.ozg-sh.de
- https://some.origin.de - https://some.origin.de
- https://some.other.origin.de - https://some.other.origin.de
- it: should use additional redirect uris for client web origins - it: should use additional redirect uris for client web origins
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment