Overview
Manages user authentication, session management, and role-based access control. Uses local authentication in the prototype; designed for future external identity provider integration.
Documents
Authentication and Authorization Service
Responsibilities
Secures access to the platform REST API and WebSocket endpoints.
- Validates credentials and issues session tokens (JWT)
- Enforces role-based access control (RBAC) on API endpoints
- Integrates with the REST API and WebSocket SSE Interface via the Authentication Provider Interface
Roles
| Role | Permissions |
|---|---|
admin |
Full access: config, monitoring, trading controls |
trader |
View positions, signals, orders; trigger manual trades |
viewer |
Read-only: monitoring and reporting |
Design Notes
- Milestone 1: simple token-based auth (API key)
- Milestone 2: JWT with refresh tokens, RBAC enforcement
- Implements the Authentication Provider Interface contract