Skip to content
Permalink
Browse files

Support the credential of dingtalk as the provider of oauth2 proxy.

  • Loading branch information...
zxkane committed Sep 17, 2018
1 parent f4d08bf commit 7ac0f67acc71577275f743bdcf9a870bd65361b0
@@ -1,5 +1,5 @@
name: oauth2-proxy
version: 0.6.0
version: 0.6.1-dingtalk
# This chart is deprecated and no longer maintained as it's upstream has been abandoned.
# For details deprecation, including how to un-deprecate a chart see the PROCESSES.md file.
deprecated: true
@@ -67,6 +67,20 @@ spec:
secretKeyRef:
name: {{ template "oauth2-proxy.fullname" . }}
key: cookie-secret
{{ if .Values.config.dingtalkCorpID }}
- name: OAUTH2_PROXY_DINGTALK_CORPID
valueFrom:
secretKeyRef:
name: {{ template "oauth2-proxy.fullname" . }}
key: dingtalk-corpid
{{ end }}
{{ if .Values.config.dingtalkCorpSecret }}
- name: OAUTH2_PROXY_DINGTALK_CORPSECRET
valueFrom:
secretKeyRef:
name: {{ template "oauth2-proxy.fullname" . }}
key: dingtalk-corpsecret
{{ end }}
ports:
- containerPort: 4180
name: http
@@ -12,3 +12,9 @@ data:
cookie-secret: {{ .Values.config.cookieSecret | b64enc | quote }}
client-secret: {{ .Values.config.clientSecret | b64enc | quote }}
client-id: {{ .Values.config.clientID | b64enc | quote }}
{{ if .Values.config.dingtalkCorpID }}
dingtalk-corpid: {{ .Values.config.dingtalkCorpID | b64enc | quote }}
{{ end }}
{{ if .Values.config.dingtalkCorpSecret }}
dingtalk-corpsecret: {{ .Values.config.dingtalkCorpSecret | b64enc | quote }}
{{ end }}
@@ -12,6 +12,9 @@ config:
# pass_basic_auth = false
# pass_access_token = true
configFile: ""
# required options for dingtalk
#dingtalkCorpID: "corpid"
#dingtalkCorpSecret: "corpsecret"

image:
repository: "a5huynh/oauth2_proxy"

0 comments on commit 7ac0f67

Please sign in to comment.
You can’t perform that action at this time.