refactor(auth): split IAM module and add access/refresh session flow

This commit is contained in:
2026-03-01 21:26:37 +08:00
parent 6a2d2c9724
commit 57c27e9102
13 changed files with 1377 additions and 345 deletions

View File

@@ -56,3 +56,23 @@ services:
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka:9092
depends_on:
- kafka
api:
image: golang:1.26.0
container_name: todo-api
working_dir: /app
command: go run ./cmd/server
volumes:
- .:/app
ports:
- "8080:8080"
environment:
DATABASE_URL: postgres://todo:todo@postgres:5432/todo?sslmode=disable
REDIS_ADDR: redis:6379
KAFKA_BROKERS: kafka:9092
KAFKA_TOPIC: todo.tasks
AUTH_SECRET: dev-secret-change-me
depends_on:
- postgres
- redis
- kafka