Implement Auth service — login, register, sessions, account properties, OAuth stubs
- auth.proto: add account property CRUD messages + OAuthProvider enum + LoginWithOAuth (all OAuth providers disabled via Redis feature flags: oauth_<provider>_enabled) - SOR.Auth: full AuthGrpcHandler — password auth, session tokens (32-byte random, SHA-256 hash in Postgres, raw token in Redis with TTL), ValidateToken with Redis fast-path + Postgres slow-path fallback, Logout with dual revocation - AccountProperty entity: flexible key-value bag per account (snake_case keys, string values); upsert semantics; indexed on (AccountId, Key) - SOR.Auth/ServiceRegistration: registers Identity DbContext + UserManager + roles - SOR.Host/appsettings.json: add Postgres Default connection string - AddAccountProperties migration applied to pg-forge-01 Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"ConnectionStrings": {
|
||||
"Redis": "localhost:6379"
|
||||
"Redis": "localhost:6379",
|
||||
"Default": "Host=172.10.1.127;Port=5432;Database=sor;Username=SOR-DBA;Password=G073gxq7VtQaOfnITcxDh3bsibcipe6D"
|
||||
},
|
||||
"Nats": {
|
||||
"Url": "nats://localhost:4222"
|
||||
|
||||
Reference in New Issue
Block a user