From 4c25606e8844be51603c9fd08c1d4bf954f8cea5 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 31 Jan 2026 09:41:04 +0100 Subject: [PATCH] =?UTF-8?q?fix(vikunja):=20update=20OpenID=20providers=20c?= =?UTF-8?q?onfiguration=20to=20support=20multip=E2=80=A6=20(#44339)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …le providers **Description** ⚒️ Fixes # **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [x] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code - [ ] 📜 Documentation Changes **🧪 How Has This Been Tested?** **📃 Notes:** **✔️ Checklist:** - [x] ⚖️ My code follows the style guidelines of this project - [ ] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made changes to the documentation - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [x] ⬆️ I increased versions for any altered app according to semantic versioning - [x] I made sure the title starts with `feat(chart-name):`, `fix(chart-name):`, `chore(chart-name):`, `docs(chart-name):` or `fix(docs):` **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._ --- charts/stable/vikunja/Chart.yaml | 2 +- charts/stable/vikunja/templates/_secrets.tpl | 21 ++++++++++++----- charts/stable/vikunja/values.yaml | 24 +++++++++++++++----- 3 files changed, 34 insertions(+), 13 deletions(-) diff --git a/charts/stable/vikunja/Chart.yaml b/charts/stable/vikunja/Chart.yaml index 56dfadc0c38..4e714485318 100644 --- a/charts/stable/vikunja/Chart.yaml +++ b/charts/stable/vikunja/Chart.yaml @@ -50,5 +50,5 @@ sources: - https://hub.docker.com/r/vikunja/vikunja - https://vikunja.io/docs type: application -version: 18.0.0 +version: 18.0.1 diff --git a/charts/stable/vikunja/templates/_secrets.tpl b/charts/stable/vikunja/templates/_secrets.tpl index 53a5bb31bb6..6da3c58be69 100644 --- a/charts/stable/vikunja/templates/_secrets.tpl +++ b/charts/stable/vikunja/templates/_secrets.tpl @@ -151,14 +151,23 @@ secret: {{- end }} {{- with .Values.vikunja.auth.openid.providers }} providers: - {{- range . }} - - name: {{ .name | quote }} - authurl: {{ .authurl | quote }} - {{- with .logouturl }} + {{- range $key, $value := . }} + {{ $key }}: + name: {{ $value.name | quote }} + authurl: {{ $value.authurl | quote }} + {{- with $value.logouturl }} logouturl: {{ . | quote }} {{- end }} - clientid: {{ .clientid | quote }} - clientsecret: {{ .clientsecret | quote }} + clientid: {{ $value.clientid | quote }} + clientsecret: {{ $value.clientsecret | quote }} + {{- if hasKey $value "scope" }} + scope: {{ $value.scope | quote }} + {{- end }} + {{- if hasKey $value "forceuserinfo" }} + forceuserinfo: {{ $value.forceuserinfo }} + {{- else }} + forceuserinfo: false + {{- end }} {{- end }} {{- end }} diff --git a/charts/stable/vikunja/values.yaml b/charts/stable/vikunja/values.yaml index 32f42c87e01..2fd601497eb 100644 --- a/charts/stable/vikunja/values.yaml +++ b/charts/stable/vikunja/values.yaml @@ -103,12 +103,24 @@ vikunja: openid: enabled: false redirecturl: "" - providers: [] - # - name: "" - # authurl: "" - # logouturl: "" - # clientid: "" - # clientsecret: "" + providers: {} + # Example configuration for multiple OpenID providers: + # providers: + # provider-id1: + # name: "Provider 1" + # authurl: "https://auth.example.com" # Used for OIDC Discovery, usually the issuer + # logouturl: "" # Optional + # clientid: "vikunja-client-id" + # clientsecret: "vikunja-client-secret" + # scope: "openid profile email" + # forceuserinfo: false # Optional: Set to true to always use UserInfo endpoint instead of ID token claims + # provider-id2: + # name: "Provider 2" + # authurl: "https://auth2.example.com" + # clientid: "vikunja-client-id-2" + # clientsecret: "vikunja-client-secret-2" + # scope: "openid profile email" + # forceuserinfo: false migration: todoist: enable: false