From a640ad334029924bb09b84ede092cd96aaf1273b Mon Sep 17 00:00:00 2001 From: Daniel Scholl Date: Tue, 7 May 2024 09:29:47 -0500 Subject: [PATCH] Modified the value used for clientId --- charts/osdu-developer-auth/templates/config-map.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/charts/osdu-developer-auth/templates/config-map.yaml b/charts/osdu-developer-auth/templates/config-map.yaml index 23f92f68..ac8b0a85 100644 --- a/charts/osdu-developer-auth/templates/config-map.yaml +++ b/charts/osdu-developer-auth/templates/config-map.yaml @@ -1,5 +1,7 @@ {{- $namespace := .Release.Namespace }} +{{- $clientId := .Values.azure.appId }} +{{- $tenantId := .Values.azure.tenantId }} --- apiVersion: v1 kind: ConfigMap @@ -111,12 +113,12 @@ data: var app = new Vue({ el: '#oauth-form', data: { - tenantId: '{{ .Values.azure.tenantId }}', - clientId: '{{ .Values.azure.clientId }}', + tenantId: '{{ $tenantId }}', + clientId: '{{ $clientId }}', redirectUrl: window.location.href, // Use the current page URL, responseType: 'code', responseMode: 'fragment', - scope: '{{ .Values.azure.clientId }}/.default openid profile offline_access', + scope: '{{ $clientId }}/.default openid profile offline_access', authorizationCode: null, accessToken: null, idToken: null