feat(api): let each organization sign in through its own identity provider

Owners manage OIDC providers under /settings/sso. Users start at
/sso/<org>. New users can be provisioned for verified emails in allowed
domains; existing accounts are never matched by email and must link
their SSO sign-in while signed in.

Closes #4

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-11-22 00:30:43 +01:00
1 parent 9ad5f29f1b
commit 3f21361995
19 files changed
+2731 -231

No files matched your search

+3
View File
@@ -61,6 +61,9 @@ var usagePatterns = []struct {
{regexp.MustCompile(`i18n\.T\(ctx, "([a-z0-9_.]+)"[,)]`), ""},
{regexp.MustCompile(`\bfail\(c, [^,]+, "([a-z_]+)"`), "error."},
{regexp.MustCompile(`\b(?:pageFor\(c|s\.page\()(?:, )?"([a-z0-9_.]+)"`), ""},
{regexp.MustCompile(`[^(]"(sso_[a-z_]+)"`), "error."},
{regexp.MustCompile(`return "(invalid_[a-z_]+)"`), "error."},
{regexp.MustCompile(`NoticeID = "([a-z0-9_.]+)"`), ""},
}
// TestUsedKeysExist scans the source tree for literal message IDs so a typo