UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit e87805ae authored by runyontr's avatar runyontr
Browse files

Merge branch 'gitlab-broader-sso-support' into 'master'

Allow custom omniauth provider configuration for GitLab SSO

See merge request platform-one/big-bang/bigbang!1382
parents 86401023 0beb30d8
No related branches found
No related tags found
2 merge requests!1658Draft: Merge branch 'tempo_tracing_updates' into 'master',!1382Allow custom omniauth provider configuration for GitLab SSO
Pipeline #705848 passed
......@@ -16,20 +16,23 @@ stringData:
"args": {
"name": "openid_connect",
"scope": [
"Gitlab"
{{- $scopes := .Values.addons.gitlab.sso.scopes | default (list "Gitlab") | uniq }}
{{- range $index, $scopes }}
{{ $index | quote }}{{if ne $index (last $scopes)}},{{end}}
{{- end }}
],
"response_type": "code",
"issuer": "https://{{ .Values.sso.oidc.host }}/auth/realms/{{ .Values.sso.oidc.realm }}",
"issuer": {{ .Values.addons.gitlab.sso.issuer_uri | default "https://{{ .Values.sso.oidc.host }}/auth/realms/{{ .Values.sso.oidc.realm }}" | quote }},
"client_auth_method": "query",
"discovery": true,
"uid_field": "preferred_username",
"uid_field": {{ .Values.addons.gitlab.sso.uid_field | default "preferred_username" | quote }},
"client_options": {
"identifier": "{{ .Values.addons.gitlab.sso.client_id | default .Values.sso.client_id }}",
"secret": "{{ .Values.addons.gitlab.sso.client_secret | default .Values.sso.client_secret }}",
"redirect_uri": "https://{{ .Values.addons.gitlab.hostnames.gitlab }}.{{ $domainName }}/users/auth/openid_connect/callback",
"end_session_endpoint": "https://{{ .Values.sso.oidc.host }}/auth/realms/{{ .Values.sso.oidc.realm }}/protocol/openid-connect/logout"
"end_session_endpoint": {{ .Values.addons.gitlab.sso.end_session_uri | default "https://{{ .Values.sso.oidc.host }}/auth/realms/{{ .Values.sso.oidc.realm }}/protocol/openid-connect/logout" | quote }}
}
}
}
{{- end }}
{{- end}}
\ No newline at end of file
{{- end}}
......@@ -751,6 +751,18 @@ addons:
# -- Gitlab SSO login button label
label: ""
# -- Gitlab SSO Scopes, default is ["Gitlab"]
scopes:
- Gitlab
# -- GitLab SSO URIs
# Only needed if your SSO is non-Keycloak
#issuer_uri:
#end_session_uri:
# -- Gitlab SSO UID field
uid_field: preferred_username
database:
# -- Hostname of a pre-existing PostgreSQL database to use for Gitlab.
# Entering connection info will disable the deployment of an internal database and will auto-create any required secrets.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment