Skip to content

Commit

Permalink
feat: configurable defaultClientScopes (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Kruggel authored Nov 13, 2024
1 parent aae3f61 commit f1670f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions chart/templates/uds-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ spec:
redirectUris:
- "https://{{ .Values.subdomain }}.{{ .Values.domain }}/*"
defaultClientScopes:
{{- if .Values.sso.defaultClientScopes }}
{{- range .Values.sso.defaultClientScopes }}
- "{{ . }}"
{{- end }}
{{- else }}
- "openid"
{{ if eq .Values.sso.protocol "gitlab" }}
- "mapper-oidc-username-username"
Expand All @@ -24,6 +29,7 @@ spec:
- "profile"
- "email"
{{ end }}
{{- end }}

secretName: {{ .Values.sso.secretName }}
secretTemplate:
Expand Down
3 changes: 3 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ sso:
protocol: "gitlab"
secretName: mattermost-sso

# This will replace the current list of default client scopes.
defaultClientScopes: {}

# These should typically be disabled if SSO is enabled
enable_sign_up_with_email: false
enable_sign_in_with_email: false
Expand Down

0 comments on commit f1670f9

Please sign in to comment.