Account panel shows the Kanidm UUID under the 'username' label #63

Stängd
öppnade 2026-07-19 06:58:59 +00:00 av supernaut · 1 kommentar
Ägare

Severity: MEDIUM (visible correctness bug) — pre-onboarding bitborg-web audit (2026-07-19).

src/components/account-panel.astro:118-119 renders {user.sub} under the panel.account.username label; user.sub is the Kanidm subject UUID (src/lib/auth/session.ts:44-52). preferred_username is read in normalizeClaims but discarded by userFromClaims (session.ts:135-144). So logged-in users see a UUID where their username should be.

Ask

Persist preferred_username in SessionUser and display it; keep sub for API references (the Renovate group write). Effort S.

**Severity: MEDIUM** (visible correctness bug) — pre-onboarding bitborg-web audit (2026-07-19). `src/components/account-panel.astro:118-119` renders `{user.sub}` under the `panel.account.username` label; `user.sub` is the Kanidm subject **UUID** (`src/lib/auth/session.ts:44-52`). `preferred_username` is read in `normalizeClaims` but discarded by `userFromClaims` (`session.ts:135-144`). So logged-in users see a UUID where their username should be. ### Ask Persist `preferred_username` in `SessionUser` and display it; keep `sub` for API references (the Renovate group write). Effort S.
supernaut lade till detta till projektet Bitborg Web 2026-07-19 07:04:49 +00:00
Upphovsperson
Ägare

✅ Fixed via PR #70 (merged). The account panel now shows preferred_username (fallback sub) instead of the Kanidm UUID. Deploys via CI → host pull.

✅ Fixed via PR #70 (merged). The account panel now shows `preferred_username` (fallback `sub`) instead of the Kanidm UUID. Deploys via CI → host pull.
Logga in för att delta i denna konversation.
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-web#63
Ingen beskrivning angiven.