[PR #973] [MERGED] feat(frontend): expose auto-link existing accounts in OIDC provider settings #1141

Closed
opened 2026-05-06 12:35:17 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/maziggy/bambuddy/pull/973
Author: @netscout2001
Created: 4/14/2026
Status: Merged
Merged: 4/14/2026
Merged by: @maziggy

Base: devHead: feature/2fa-oidc-authentication


📝 Commits (3)

  • 6c052a0 feat(frontend): add auto-link existing accounts toggle to OIDC provider settings
  • 6b12525 Merge branch 'dev' into feature/2fa-oidc-authentication
  • ddd86e0 Merge branch 'dev' into feature/2fa-oidc-authentication

📊 Changes

9 files changed (+31 additions, -0 deletions)

View changed files

📝 frontend/src/api/client.ts (+2 -0)
📝 frontend/src/components/OIDCProviderSettings.tsx (+15 -0)
📝 frontend/src/i18n/locales/de.ts (+2 -0)
📝 frontend/src/i18n/locales/en.ts (+2 -0)
📝 frontend/src/i18n/locales/fr.ts (+2 -0)
📝 frontend/src/i18n/locales/it.ts (+2 -0)
📝 frontend/src/i18n/locales/ja.ts (+2 -0)
📝 frontend/src/i18n/locales/pt-BR.ts (+2 -0)
📝 frontend/src/i18n/locales/zh-CN.ts (+2 -0)

📄 Description

Summary

Small follow-up to #933 / closes #902.

The backend field auto_link_existing_accounts (added in #933) was never
wired up in the frontend — the toggle was missing from the OIDC provider
form, edit view, and info display. As a result, admins had no way to enable
or disable the setting via the UI.

Changes

  • frontend/src/api/client.ts — add auto_link_existing_accounts to
    OIDCProvider and OIDCProviderCreate interfaces
  • frontend/src/components/OIDCProviderSettings.tsx — add toggle in
    provider form, populate edit initial state, show value in info display
  • All 7 locale files — add autoLink / autoLinkDesc translation keys
    (en, de, fr, it, pt-BR, zh-CN, ja)

Tested

  • Create a new OIDC provider → "Auto-link existing accounts" toggle
    is visible and saved correctly
  • Edit an existing provider → toggle reflects current DB value
  • Provider info card shows the correct Yes/No value
  • Existing OIDC login flow (auto-link enabled) works end-to-end

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/maziggy/bambuddy/pull/973 **Author:** [@netscout2001](https://github.com/netscout2001) **Created:** 4/14/2026 **Status:** ✅ Merged **Merged:** 4/14/2026 **Merged by:** [@maziggy](https://github.com/maziggy) **Base:** `dev` ← **Head:** `feature/2fa-oidc-authentication` --- ### 📝 Commits (3) - [`6c052a0`](https://github.com/maziggy/bambuddy/commit/6c052a094d859f4db6cf83c164fb6349f3e101b7) feat(frontend): add auto-link existing accounts toggle to OIDC provider settings - [`6b12525`](https://github.com/maziggy/bambuddy/commit/6b12525575f168f0d66912efc8abf20183884219) Merge branch 'dev' into feature/2fa-oidc-authentication - [`ddd86e0`](https://github.com/maziggy/bambuddy/commit/ddd86e0ba360ff5ba787b53dde14894bd1dd191d) Merge branch 'dev' into feature/2fa-oidc-authentication ### 📊 Changes **9 files changed** (+31 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/api/client.ts` (+2 -0) 📝 `frontend/src/components/OIDCProviderSettings.tsx` (+15 -0) 📝 `frontend/src/i18n/locales/de.ts` (+2 -0) 📝 `frontend/src/i18n/locales/en.ts` (+2 -0) 📝 `frontend/src/i18n/locales/fr.ts` (+2 -0) 📝 `frontend/src/i18n/locales/it.ts` (+2 -0) 📝 `frontend/src/i18n/locales/ja.ts` (+2 -0) 📝 `frontend/src/i18n/locales/pt-BR.ts` (+2 -0) 📝 `frontend/src/i18n/locales/zh-CN.ts` (+2 -0) </details> ### 📄 Description ## Summary Small follow-up to #933 / closes #902. The backend field `auto_link_existing_accounts` (added in #933) was never wired up in the frontend — the toggle was missing from the OIDC provider form, edit view, and info display. As a result, admins had no way to enable or disable the setting via the UI. ## Changes - `frontend/src/api/client.ts` — add `auto_link_existing_accounts` to `OIDCProvider` and `OIDCProviderCreate` interfaces - `frontend/src/components/OIDCProviderSettings.tsx` — add toggle in provider form, populate edit initial state, show value in info display - All 7 locale files — add `autoLink` / `autoLinkDesc` translation keys (en, de, fr, it, pt-BR, zh-CN, ja) ## Tested - [x] Create a new OIDC provider → "Auto-link existing accounts" toggle is visible and saved correctly - [x] Edit an existing provider → toggle reflects current DB value - [x] Provider info card shows the correct Yes/No value - [x] Existing OIDC login flow (auto-link enabled) works end-to-end --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-06 12:35:17 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bambuddy#1141
No description provided.