Skip to content

Commit

Permalink
feat: add ability to change default scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
mkborland committed Nov 13, 2024
1 parent fdd0a7c commit dfb5267
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions chart/templates/uds-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,26 @@ spec:
- "https://confluence.{{ .Values.domain }}/plugins/servlet/oidc/callback"

defaultClientScopes:
{{- if .Values.sso.defaultClientScopes }}
{{- range .Values.sso.defaultClientScopes }}
- "{{ . }}"
{{- end }}
{{- else }}
- "mapper-saml-email-email"
- "mapper-saml-firstname-first_name"
- "mapper-saml-lastname-last_name"
- "mapper-saml-grouplist-groups"
- "mapper-saml-username-name"
{{- end }}
{{- else if eq .Values.sso.protocol "openid_connect" }}
clientId: uds-package-confluence-openid-connect
protocol: openid-connect
defaultClientScopes:
{{- if .Values.sso.defaultClientScopes }}
{{- range .Values.sso.defaultClientScopes }}
- "{{ . }}"
{{- end }}
{{- end }}

redirectUris:
- "https://confluence.{{ .Values.domain }}/plugins/servlet/oidc/callback"
Expand Down
2 changes: 2 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ sso:
enabled: true
# Options: "saml", "openid_connect"
protocol: "saml"
# This will replace the current list of default scopes. Add all mappers that are necessary here
defaultClientScopes: {}

# custom:
# # Notice no `remoteGenerated` field here on custom internal rule
Expand Down

0 comments on commit dfb5267

Please sign in to comment.