Skip to content

Commit

Permalink
Support SAML_IDP_ENTITY_ID_TEMPLATE
Browse files Browse the repository at this point in the history
  • Loading branch information
louischan-oursky committed Aug 22, 2024
2 parents fb03606 + aced600 commit 5e6f95c
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions authgear/templates/authgear-admin-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ spec:
{{- range $index, $defaultDomain := .Values.authgear.allDefaultDomains }}
{{- $suffixes = append $suffixes (printf ".%s" $defaultDomain.domain) }}
{{- end }}
{{- if .Values.authgear.saml.idpEntityIDTemplate }}
- name: SAML_IDP_ENTITY_ID_TEMPLATE
value: {{ .Values.authgear.saml.idpEntityIDTemplate | quote }}
{{- end }}
- name: APP_HOST_SUFFIXES
value: {{ join "," $suffixes | quote }}
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions authgear/templates/authgear-background.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ spec:
- name: CUSTOM_RESOURCE_DIRECTORY
value: {{ .Values.authgear.appCustomResources.path | quote }}
{{- range $key, $val := .Values.authgear.mainServer.env }}
{{- if .Values.authgear.saml.idpEntityIDTemplate }}
- name: SAML_IDP_ENTITY_ID_TEMPLATE
value: {{ .Values.authgear.saml.idpEntityIDTemplate | quote }}
{{- end }}
- name: {{ $key | quote }}
value: {{ $val | quote }}
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions authgear/templates/authgear-main-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ spec:
{{- range $index, $defaultDomain := .Values.authgear.allDefaultDomains }}
{{- $suffixes = append $suffixes (printf ".%s" $defaultDomain.domain) }}
{{- end }}
{{- if .Values.authgear.saml.idpEntityIDTemplate }}
- name: SAML_IDP_ENTITY_ID_TEMPLATE
value: {{ .Values.authgear.saml.idpEntityIDTemplate | quote }}
{{- end }}
- name: APP_HOST_SUFFIXES
value: {{ join "," $suffixes | quote }}
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions authgear/templates/authgear-portal-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ spec:
value: {{ .Values.authgear.portalServer.adminAPI.endpoint | quote }}
- name: ADMIN_API_HOST_TEMPLATE
value: {{ printf "%s.%s" "{{ .AppID }}" .Values.authgear.defaultDomain | quote }}
{{- if .Values.authgear.saml.idpEntityIDTemplate }}
- name: SAML_IDP_ENTITY_ID_TEMPLATE
value: {{ .Values.authgear.saml.idpEntityIDTemplate | quote }}
{{- end }}
- name: APP_HOST_SUFFIX
value: {{ printf ".%s" .Values.authgear.defaultDomain | quote }}
{{- if .Values.authgear.allDefaultDomains }}
Expand Down
4 changes: 4 additions & 0 deletions authgear/templates/authgear-resolver-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ spec:
{{- range $index, $defaultDomain := .Values.authgear.allDefaultDomains }}
{{- $suffixes = append $suffixes (printf ".%s" $defaultDomain.domain) }}
{{- end }}
{{- if .Values.authgear.saml.idpEntityIDTemplate }}
- name: SAML_IDP_ENTITY_ID_TEMPLATE
value: {{ .Values.authgear.saml.idpEntityIDTemplate | quote }}
{{- end }}
- name: APP_HOST_SUFFIXES
value: {{ join "," $suffixes | quote }}
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions authgear/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ authgear:

redisURL: redis://localhost

saml:
# The default is "urn:{{.app_id}}.localhost"
idpEntityIDTemplate: ""

stripe:
secretKey: ""
webhookSigningKey: ""
Expand Down

0 comments on commit 5e6f95c

Please sign in to comment.