mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-29 06:17:25 +00:00
Gitea's [oauth2_client] USERNAME takes a fixed keyword (userid, nickname, preferred_username, email), not a claim name. GITEA_OAUTH2_USERNAME_SOURCES translates the configured claim, so sub selects userid and an unsupported claim fails the render instead of Gitea silently falling back to nickname. The scope test now compares the sets directly. Addresses the PR 1720 review comments. 🎯 Fix: 95 % 💥 Break: 3 % 💸 Cost: – ⏱️ Time: – 🛡️ Security: 100 % 🏆 Score: 92 🚦 Gate: ✅ 90/5, cost and time <= 100, security 100 % Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>