File tree Expand file tree Collapse file tree
grafana/rootfs/usr/share/grafana Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5454{{- else }}
5555 value: http://drycc-passport. {{ .Values.global.platformDomain }}
5656{{- end }}
57- - name: " SOCIAL_AUTH_DRYCC_AUTHORIZATION_URL"
58- value: " $(DRYCC_PASSPORT_URL)/oauth/authorize/"
59- - name: " SOCIAL_AUTH_DRYCC_ACCESS_TOKEN_URL"
60- value: " $(DRYCC_PASSPORT_URL)/oauth/token/"
61- - name: " SOCIAL_AUTH_DRYCC_ACCESS_API_URL"
62- value: " $(DRYCC_PASSPORT_URL)"
63- - name: " SOCIAL_AUTH_DRYCC_USERINFO_URL"
64- value: " $(DRYCC_PASSPORT_URL)/oauth/userinfo/"
65- - name: SOCIAL_AUTH_DRYCC_KEY
57+ - name: DRYCC_PASSPORT_KEY
6658 valueFrom:
6759 secretKeyRef:
6860 name: passport-creds
69- key: social-auth- drycc-grafana-key
70- - name: SOCIAL_AUTH_DRYCC_SECRET
61+ key: drycc-passport -grafana-key
62+ - name: DRYCC_PASSPORT_SECRET
7163 valueFrom:
7264 secretKeyRef:
7365 name: passport-creds
74- key: social-auth- drycc-grafana-secret
66+ key: drycc-passport -grafana-secret
7567{{- end }}
Original file line number Diff line number Diff line change @@ -231,15 +231,15 @@ config_file = "/usr/share/grafana/ldap.toml"
231231
232232#################################### Generic Oauth ##########################
233233[auth.generic_oauth ]
234- {{ if .SOCIAL_AUTH_DRYCC_KEY }}
234+ {{ if .DRYCC_PASSPORT_URL }}
235235name = OAuth
236236enabled = true
237- client_id = {{ .SOCIAL_AUTH_DRYCC_KEY }}
238- client_secret = {{ .SOCIAL_AUTH_DRYCC_SECRET }}
237+ client_id = {{ .DRYCC_PASSPORT_KEY }}
238+ client_secret = {{ .DRYCC_PASSPORT_SECRET }}
239239scopes = profile,openid
240- auth_url = {{ .SOCIAL_AUTH_DRYCC_AUTHORIZATION_URL }}
241- token_url = {{ .SOCIAL_AUTH_DRYCC_ACCESS_TOKEN_URL }}
242- api_url = {{ .SOCIAL_AUTH_DRYCC_USERINFO_URL }}
240+ auth_url = {{ .DRYCC_PASSPORT_URL }}/oauth/authorize/
241+ token_url = {{ .DRYCC_PASSPORT_URL }}/oauth/token/
242+ api_url = {{ .DRYCC_PASSPORT_URL }}
243243allow_sign_up = true
244244tls_skip_verify_insecure = true
245245role_attribute_path = (is_superuser && 'Admin') || (is_staff && 'Viewer') || ''
You can’t perform that action at this time.
0 commit comments