From 5e124a1487b31875b0b8d2d9cfb9db6c1e18a9c4 Mon Sep 17 00:00:00 2001 From: TheDodger <1710352+TheDodger@users.noreply.github.com> Date: Wed, 1 Apr 2026 21:33:40 +0200 Subject: [PATCH] fix(vikunja): Expose all OIDC config options (#46507) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See: https://vikunja.io/docs/config-options/#1-auth-openid **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 - [X] 👀 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 | 18 +++++++++++++++--- charts/stable/vikunja/values.yaml | 4 +++- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/charts/stable/vikunja/Chart.yaml b/charts/stable/vikunja/Chart.yaml index 68961d6f0dc..ddcfa4d1496 100644 --- a/charts/stable/vikunja/Chart.yaml +++ b/charts/stable/vikunja/Chart.yaml @@ -41,5 +41,5 @@ sources: - https://hub.docker.com/r/vikunja/vikunja - https://vikunja.io/docs type: application -version: 21.1.2 +version: 21.1.3 diff --git a/charts/stable/vikunja/templates/_secrets.tpl b/charts/stable/vikunja/templates/_secrets.tpl index 6da3c58be69..349e4864910 100644 --- a/charts/stable/vikunja/templates/_secrets.tpl +++ b/charts/stable/vikunja/templates/_secrets.tpl @@ -146,9 +146,6 @@ secret: enabled: {{ .Values.vikunja.auth.local.enabled }} openid: enabled: {{ .Values.vikunja.auth.openid.enabled }} - {{- with .Values.vikunja.auth.openid.redirecturl }} - redirecturl: {{ . | quote }} - {{- end }} {{- with .Values.vikunja.auth.openid.providers }} providers: {{- range $key, $value := . }} @@ -163,11 +160,26 @@ secret: {{- if hasKey $value "scope" }} scope: {{ $value.scope | quote }} {{- end }} + {{- if hasKey $value "usernamefallback" }} + usernamefallback: {{ $value.usernamefallback }} + {{- else }} + usernamefallback: false + {{- end }} + {{- if hasKey $value "emailfallback" }} + emailfallback: {{ $value.emailfallback }} + {{- else }} + emailfallback: false + {{- end }} {{- if hasKey $value "forceuserinfo" }} forceuserinfo: {{ $value.forceuserinfo }} {{- else }} forceuserinfo: false {{- end }} + {{- if hasKey $value "requireavailability" }} + requireavailability: {{ $value.requireavailability }} + {{- else }} + requireavailability: false + {{- end }} {{- end }} {{- end }} diff --git a/charts/stable/vikunja/values.yaml b/charts/stable/vikunja/values.yaml index d9efc91f036..2b1ae9386f6 100644 --- a/charts/stable/vikunja/values.yaml +++ b/charts/stable/vikunja/values.yaml @@ -103,7 +103,6 @@ vikunja: enabled: true openid: enabled: false - redirecturl: "" providers: {} # Example configuration for multiple OpenID providers: # providers: @@ -114,7 +113,10 @@ vikunja: # clientid: "vikunja-client-id" # clientsecret: "vikunja-client-secret" # scope: "openid profile email" + # usernamefallback: false + # emailfallback: false # forceuserinfo: false # Optional: Set to true to always use UserInfo endpoint instead of ID token claims + # requireavailability: false # provider-id2: # name: "Provider 2" # authurl: "https://auth2.example.com"