Skip to content

Commit

Permalink
expose oidc scope (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
szalai1 authored Jan 24, 2023
1 parent d5dfe26 commit a8e2042
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/datahub/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies:
repository: file://./subcharts/datahub-gms
condition: datahub-gms.enabled
- name: datahub-frontend
version: 0.2.131
version: 0.2.132
repository: file://./subcharts/datahub-frontend
condition: datahub-frontend.enabled
- name: datahub-mae-consumer
Expand Down
2 changes: 1 addition & 1 deletion charts/datahub/subcharts/datahub-frontend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description: A Helm chart for Kubernetes
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.2.131
version: 0.2.132
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: v0.9.6.1
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ spec:
- name: AUTH_OIDC_DISCOVERY_URI
value: https://accounts.google.com/.well-known/openid-configuration
- name: AUTH_OIDC_SCOPE
value: "openid profile email"
value: {{ .scope | default "openid profile email" }}
- name: AUTH_OIDC_USER_NAME_CLAIM
value: email
- name: AUTH_OIDC_USER_NAME_CLAIM_REGEX
Expand All @@ -188,12 +188,12 @@ spec:
- name: AUTH_OIDC_DISCOVERY_URI
value: https://{{ .oktaDomain }}/.well-known/openid-configuration
- name: AUTH_OIDC_SCOPE
value: "openid profile email groups"
value: {{ .scope | default "openid profile email groups" }}
{{- else if eq .provider "azure" }}
- name: AUTH_OIDC_DISCOVERY_URI
value: https://login.microsoftonline.com/{{ .azureTenantId }}/v2.0/.well-known/openid-configuration
- name: AUTH_OIDC_SCOPE
value: "openid profile email"
value: {{ .scope | default "openid profile email" }}
{{- else }}
{{- fail (printf "unsupported .oidcAuthentication.provider value '%s'" .provider) }}
{{- end }}
Expand Down
5 changes: 4 additions & 1 deletion charts/datahub/subcharts/datahub-frontend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ ingress:
oidcAuthentication:
enabled: false
# provider: google/okta/azure <- choose only one

# clientId: your-client-id
# clientSecret: your-client-secret
# only needed if you would like to store the client secret in secret
Expand All @@ -81,8 +82,10 @@ oidcAuthentication:
# only needed if provider is `okta`
# oktaDomain: your-okta-domain.com

# only neede if provider is `azure`
# only needed if provider is `azure`
# azureTenantId: your-azure-tenant-id
# if needed, it should set meaningful defaults from provider
# scope: "openid profile email"

# Extra environment variables
# This will be appended to the current 'env:' key. You can use any of the kubernetes env
Expand Down

0 comments on commit a8e2042

Please sign in to comment.