iven
3afd732de8
feat(auth): add handlers, JWT middleware, RBAC, and module registration
- Auth handlers: login/refresh/logout + user CRUD with tenant isolation
- JWT middleware: Bearer token validation → TenantContext injection
- RBAC helpers: require_permission, require_any_permission, require_role
- AuthModule: implements ErpModule with public/protected route split
- AuthState: FromRef pattern avoids circular deps between erp-auth and erp-server
- Server: public routes (health+login+refresh) + protected routes (JWT middleware)
- ErpModule trait: added as_any() for downcast support
- Workspace: added async-trait, sha2 dependencies
2026-04-11 03:22:04 +08:00
..
2026-04-11 03:22:04 +08:00
2026-04-11 01:19:30 +08:00
2026-04-10 23:40:38 +08:00
2026-04-11 03:22:04 +08:00
2026-04-10 23:40:38 +08:00
2026-04-11 03:22:04 +08:00
2026-04-10 23:40:38 +08:00