helm-charts/authentik-application/files/provider/saml.yaml.gotmpl

34 lines
955 B
Go Template

{{/*
https://github.com/goauthentik/authentik/blob/main/authentik/providers/saml/models.py
*/}}
{{- with get . "root" }}
{{- $ := . }}
- model: .SAMLPropertyMapping
attrs:
saml_name:
friendly_name:
# ---
pm_uuid:
name:
expression:
- model: authentik_providers_saml.SAMLProvider
id: {{ .Values.blueprint.provider.name | default (include "authentik-application.fullname" .) }}
identifiers:
name: {{ .Values.blueprint.provider.name | default (include "authentik-application.fullname" .) }}
state: present
attrs:
{{- with .Values.blueprint.provider.saml }}
acs_url: {{ .acsURL | quote }}
issuer: {{ .issuer | default (printf "%s/" $.Values.blueprint.authentik.domain) | quote }}
sp_binding: {{ .serviceProviderBinding | quote }}
{{- with .audience }}
audience: {{ . | quote }}
{{- end }}
# signing_kp:
{{- end }}{{/* end with-saml */}}
{{- end }}{{/* end with of get-root */}}