feat(store): add per-organization sso providers and linked identities

Identities are keyed by provider and subject. Both tables are tenant
scoped; org_id_by_slug resolves a slug before sign-in without opening a
broader scope.

Refs #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 c485d1a96f
commit d1976ed57a
8 files changed
+544

No files matched your search

+5
View File
@@ -16,6 +16,11 @@ sql:
go_type: github.com/google/uuid.UUID
- db_type: citext
go_type: string
- db_type: citext
nullable: true
go_type:
type: string
pointer: true
- db_type: timestamptz
go_type: time.Time
- db_type: timestamptz