Skip to content

Commit

Permalink
Add support whatsapp on-premises API
Browse files Browse the repository at this point in the history
  • Loading branch information
louischan-oursky committed Jun 7, 2023
1 parent e44ec6d commit 0c7a220
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
10 changes: 10 additions & 0 deletions authgear/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,14 @@ secrets:
whatsapp_phone_number: {{ .authgear.whatsappWATI.whatsappPhoneNumber | quote }}
webhook_auth: {{ .authgear.whatsappWATI.webhookAuth | quote }}
{{- end }}
{{- if .authgear.whatsappOnPremises.enabled }}
- key: whatsapp.on-premises
data:
api_endpoint: {{ .authgear.whatsappOnPremises.apiEndpoint | quote }}
username: {{ .authgear.whatsappOnPremises.username | quote }}
password: {{ .authgear.whatsappOnPremises.password | quote }}
templates:
otp:
{{- toYaml .authgear.whatsappOnPremises.authenticationTemplate | nindent 8 }}
{{- end}}
{{- end }}
12 changes: 12 additions & 0 deletions authgear/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@ authgear:
whatsappPhoneNumber: ""
webhookAuth: ""

whatsappOnPremises:
enabled: false
apiEndpoint: ""
username: ""
password: ""
authenticationTemplate:
name: ""
type: authentication
namespace: ""
languages:
- en

auditLog:
enabled: false
cronjob:
Expand Down

0 comments on commit 0c7a220

Please sign in to comment.