mirror of
https://github.com/shadoll/helm-charts.git
synced 2026-10-12 21:59:18 +00:00
Pocket ID rejects the authorization request outright when its OIDC client has PKCE required -- "This client requires PKCE, but the 'code_challenge' parameter is missing" -- which is the default for clients created in recent Pocket ID versions. Every app behind the portal fails at login, not just the one being tested. Upstream supports this via the pocketID provider's enablePKCE flag; the chart never emitted it, so it stayed at its false default. Adds it to the normalised portal shape (per-portal override via portals[].pocketID.enablePKCE) and defaults it on, since PKCE is harmless when the client does not require it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
{{- $portals := include "tfa.portals" . | fromYamlArray -}}
|
|
{{- $domains := include "tfa.domains" . | fromYamlArray -}}
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ .Release.Name }}-config
|
|
labels:
|
|
{{- include "tfa.labels" . | nindent 4 }}
|
|
data:
|
|
config.yaml: |
|
|
server:
|
|
# One entry per domain served. `domain` scopes the session cookie and
|
|
# `authHost` is where this service is reachable for that domain.
|
|
domains:
|
|
{{- range $domains }}
|
|
- domain: {{ .domain | quote }}
|
|
authHost: {{ .authHost | quote }}
|
|
{{- end }}
|
|
|
|
tokens:
|
|
sessionLifetime: {{ .Values.tokens.sessionLifetime }}
|
|
|
|
portals:
|
|
{{- range $portals }}
|
|
- name: {{ .name | quote }}
|
|
providers:
|
|
- pocketID:
|
|
endpoint: {{ .endpoint | quote }}
|
|
clientID: {{ .clientID | quote }}
|
|
enablePKCE: {{ .enablePKCE }}
|
|
clientSecretFile: "{{ include "tfa.secretDir" $ }}/{{ .name }}/client-secret"
|
|
{{- end }}
|
|
{{- with .Values.extraConfig }}
|
|
{{ . | nindent 4 }}
|
|
{{- end }}
|