Core · Service · Active
platform-auth-service
Shared auth and session service for the workspace, owning cookie sessions, provider configuration, local credentials, OIDC login and trusted identity routes for product backends.
- TypeScript
- NestJS 11
- PostgreSQL
- JWT/JWKS
- cookie-parser
Spec sheet
Boundary
Core / Auth
Runtime
NestJS 11 HTTP service
Default port
3100
Persistence
Dedicated auth-postgres via AUTH_DATABASE_URL
Exposure
Public auth surface plus internal trusted routes
Responsibilities
- Issue and resolve shared HttpOnly sessions across products.
- Expose provider discovery, CSRF bootstrap and password login.
- Support OIDC provider start and callback flows.
- Manage provider configuration and local credentials through guarded admin routes.
- Provide internal identity, membership and session orchestration routes.
- Expose JWKS and public key material for token validation.
Interfaces and contract surface
- GET /health
- GET /auth/runtime
- GET /.well-known/jwks.json
- GET /auth/providers
- GET /auth/session
- GET /auth/csrf
- POST /auth/login/password
- POST /auth/logout
- GET /auth/oidc/:providerId/start
- GET /auth/oidc/:providerId/callback
- GET /auth/admin/providers
- GET /auth/admin/providers/:providerId
- PUT /auth/admin/providers/:providerId
- GET /auth/admin/local-credentials
- PUT /auth/admin/local-credentials/:subjectId
- DELETE /auth/admin/local-credentials/:subjectId
- GET /internal/public-key.pem
- POST /internal/identities/upsert
- POST /internal/session/resolve
- POST /internal/session/issue
- POST /internal/session/bootstrap
- DELETE /internal/memberships/by-subject
Consumers
Dependencies and external touchpoints
- platform-local-stack
- Auth Postgres
Notes
- Auth state is Postgres-only; the previous file-state fallback has been removed.
- The runtime is split across public, admin and internal route surfaces to keep responsibilities isolated.
- A bare auth-service startup does not preload local users; product backends may bootstrap identities and credentials via internal routes.
Source references
platform-auth-service/README.mddocs/core-services-integration.mdplatform-auth-service/package.json