Skip to content

Commit

Permalink
Add advertised_protocol value for rest-sources-authorizer
Browse files Browse the repository at this point in the history
  • Loading branch information
pvannierop committed Oct 22, 2024
1 parent faa7622 commit 5f465c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/radar-rest-sources-authorizer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "4.4.4"
description: A Helm chart for the front-end application of RADAR-base Rest Sources Authorizer which is a portal to authorize the Fitbit connector to read data from Fitbit accounts.
name: radar-rest-sources-authorizer
version: 2.0.5
version: 2.1.0
icon: "http://radar-base.org/wp-content/uploads/2022/09/Logo_RADAR-Base-RGB.png"
sources:
- https://github.com/RADAR-base/radar-helm-charts/tree/main/charts/radar-rest-sources-authorizer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{ $https := ternary "http" "https" (or .Values.disable_tls (not .Values.ingress.tls)) }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -49,7 +48,7 @@ spec:
- name: BASE_HREF
value: /rest-sources/authorizer/
- name: BACKEND_BASE_URL
value: {{ printf "%s://%s/rest-sources/backend" $https .Values.serverName }}
value: {{ printf "%s://%s/rest-sources/backend" .Values.advertised_protocol .Values.serverName }}
- name: VALIDATE
value: "true"
- name: AUTH_GRANT_TYPE
Expand All @@ -59,9 +58,9 @@ spec:
- name: AUTH_CLIENT_SECRET
value: ""
- name: AUTH_CALLBACK_URL
value: {{ printf "%s://%s/rest-sources/authorizer/login" $https .Values.serverName }}
value: {{ printf "%s://%s/rest-sources/authorizer/login" .Values.advertised_protocol .Values.serverName }}
- name: AUTH_URI
value: {{ .Values.authUrl | default (printf "%s://%s/managementportal/oauth" $https .Values.serverName) }}
value: {{ .Values.authUrl | default (printf "%s://%s/managementportal/oauth" .Values.advertised_protocol .Values.serverName) }}
{{- with .Values.extraEnvVars }}
{{- toYaml . | nindent 10 }}
{{- end }}
Expand Down
2 changes: 2 additions & 0 deletions charts/radar-rest-sources-authorizer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ service:

# -- Disable TLS (reconfigures Ingress and sets URLs to use HTTP)
disable_tls: false
# - The protocol in advertised (return) URIs (https, http)
advertised_protocol: https

ingress:
# -- Enable ingress controller resource
Expand Down

0 comments on commit 5f465c9

Please sign in to comment.