Skip to content
Snippets Groups Projects
Commit 29be6997 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4939 Added option to override weborigin

parent 922fc2d3
Branches
Tags
No related merge requests found
......@@ -9,9 +9,16 @@ metadata:
spec:
keep_after_delete: {{ $.Values.sso.keep_after_delete | default false }}
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:
{{- with $client.client_web_origins }}
{{ toYaml . | indent 4 }}
{{- end }}
{{- else }}
client_web_origins:
- https://{{ include "app.baseDomain" $ }}
{{- end }}
client_redirect_uris:
- https://{{ include "app.baseDomain" $ }}
- https://{{ include "app.baseDomain" $ }}/*
......
......@@ -114,6 +114,20 @@ tests:
value:
- https://helm-admin.ozg-sh.de
- https://helm-admin.ozg-sh.de/*
- it: should override client web origins
set:
sso:
keycloak_clients:
- client_name: admin
spec.client_web_origins:
- https://some.origin.de
- https://some.other.origin.de
asserts:
- equal:
path: spec.client_redirect_uris
value:
- https://some.origin.de
- https://some.other.origin.de
- it: should use additional redirect uris for client web origins
set:
sso:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment