Skip to content

Commit 45ae644

Browse files
committed
basic settings for oauth
1 parent 60428f2 commit 45ae644

File tree

7 files changed

+115
-0
lines changed

7 files changed

+115
-0
lines changed

Tiltconfig.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,22 @@ dexcom:
118118
clientURL: "https://sandbox-api.dexcom.com"
119119
### Dexcom API Config End ###
120120

121+
### Abbott API Config Start ###
122+
abbott:
123+
secret:
124+
enabled: false
125+
data_:
126+
ClientId: ""
127+
ClientSecret: ""
128+
StateSalt: ""
129+
configmap:
130+
enabled: true
131+
redirectURL: ""
132+
tokenURL: ""
133+
authorizeURL: ""
134+
clientURL: ""
135+
### Abbott API Config End ###
136+
121137
### Kafka config start ###
122138
kafka:
123139
configmap:
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*~
18+
# Various IDEs
19+
.project
20+
.idea/
21+
*.tmproj
22+
.vscode/
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: v1
2+
appVersion: "1.0"
3+
description: A Helm chart for Kubernetes
4+
name: abbott
5+
version: 0.1.0
6+
home: https://github.com/tidepool-org/development/charts
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Abbott
2+
3+
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![AppVersion: 1.0](https://img.shields.io/badge/AppVersion-1.0-informational?style=flat-square)
4+
5+
A Helm chart for Kubernetes
6+
7+
**Homepage:** <https://github.com/tidepool-org/development/charts>
8+
9+
## Values
10+
11+
| Key | Type | Default | Description |
12+
|-----|------|---------|-------------|
13+
| configmap.enabled | bool | `true` | whether to generate a configmap |
14+
| configmap.redirectURL | string | `""` | |
15+
| secret.data_.ClientId | string | `""` | plaintext Abbott Oauth2 client id |
16+
| secret.data_.ClientSecret | string | `""` | plaintext Abbott Oauth2 client secret |
17+
| secret.data_.StateSalt | string | `""` | plaintext Abbott Oauth2 state salt |
18+
| secret.enabled | bool | `false` | whether to create Abbott secret |
19+
20+
----------------------------------------------
21+
Autogenerated from chart metadata using [helm-docs v1.3.0](https://github.com/norwoodj/helm-docs/releases/v1.3.0)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{{ if .Values.configmap.enabled }}
2+
apiVersion: v1
3+
kind: ConfigMap
4+
metadata:
5+
name: abbott
6+
namespace: {{ .Release.Namespace }}
7+
labels:
8+
{{ include "charts.labels.standard" . }}
9+
data:
10+
{{ if .Values.configmap.redirectURL }}
11+
RedirectURL: {{ .Values.configmap.redirectURL }}
12+
{{ else }}
13+
RedirectURL: "{{include "charts.host.api" .}}/v1/oauth/abbott/redirect"
14+
{{ end }}
15+
TokenURL: {{ .Values.configmap.tokenURL }}
16+
AuthorizeURL: {{ .Values.configmap.authorizeURL }}
17+
ClientURL: {{ .Values.configmap.clientURL }}
18+
Scopes: "openid,offline,read.glucose,read.device"
19+
{{ end }}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{{ if .Values.secret.enabled -}}
2+
---
3+
apiVersion: v1
4+
{{ with .Values.secret.data_ -}}
5+
data:
6+
ClientId: {{ .ClientId | default "" | b64enc | quote }}
7+
ClientSecret: {{ .ClientSecret | default "" | b64enc | quote }}
8+
StateSalt: {{ .StateSalt | default "" | b64enc | quote }}
9+
{{- end }}
10+
kind: Secret
11+
metadata:
12+
name: abbott
13+
namespace: {{ .Release.Namespace }}
14+
type: Opaque
15+
{{- end }}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
secret:
2+
# -- whether to create abbott secret
3+
enabled: false
4+
data_:
5+
# -- plaintext Abbott Oauth2 client id
6+
ClientId: ""
7+
# -- plaintext Abbott Oauth2 client secret
8+
ClientSecret: ""
9+
# -- plaintext Abbott Oauth2 state salt
10+
StateSalt: ""
11+
configmap:
12+
# -- whether to generate a configmap
13+
enabled: true
14+
redirectURL: ""
15+
clientURL: ""
16+

0 commit comments

Comments
 (0)