From 053fe6e33c00e26597f078aff7896ecc08266314 Mon Sep 17 00:00:00 2001 From: Michael-Kruggel Date: Tue, 12 Nov 2024 23:26:02 +0000 Subject: [PATCH] wip: adding configurable client scopes for OIDC --- chart/templates/uds-package.yaml | 6 ++++++ chart/values.yaml | 1 + 2 files changed, 7 insertions(+) diff --git a/chart/templates/uds-package.yaml b/chart/templates/uds-package.yaml index 11e6a3d..2192a62 100644 --- a/chart/templates/uds-package.yaml +++ b/chart/templates/uds-package.yaml @@ -50,6 +50,12 @@ spec: clientId: uds-package-jenkins-openid-connect protocol: openid-connect + defaultClientScopes: + {{- if .Values.sso.defaultClientScopes }} + {{- range .Values.sso.defaultClientScopes }} + - "{{ . }}" + {{- end }} + {{- end }} secretName: {{ .Values.sso.secretName }} secretTemplate: diff --git a/chart/values.yaml b/chart/values.yaml index 55133ac..30bb10a 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -8,6 +8,7 @@ sso: secretName: jenkins-sso # protocol should be either 'saml' or 'openid_connect' protocol: saml + # This will replace the current list of default scopes. Add all mappers that are necessary here defaultClientScopes: {} # customNetworkPolicies: