feat(identity): redesign identity module and introduce RBAC foundation
- Redesign the Identity module with a richer domain model. - Extend the User entity to support username, Authentik integration, activity tracking, and storage information. - Add Role and Permission domain models with many-to-many relationships. - Implement RBAC foundation using UserRole, RolePermission, and UserPermission mappings. - Add user storage quota and usage fields with default values. - Introduce Authentik identifiers and synchronization metadata. - Refactor user domain logic for role and permission management. - Update Prisma schema to support the new identity architecture. - Improve JWT authentication and permission guard integration. - Update repositories, handlers, controllers, mappers, DTOs, and Swagger configuration. - Refresh environment configuration and project dependencies.
This commit is contained in:
+3
-4
@@ -10,7 +10,7 @@ async function bootstrap() {
|
||||
|
||||
const config = app.get(ConfigService);
|
||||
|
||||
app.setGlobalPrefix('api');
|
||||
app.setGlobalPrefix('');
|
||||
|
||||
app.useGlobalPipes(
|
||||
new ValidationPipe({
|
||||
@@ -22,8 +22,7 @@ async function bootstrap() {
|
||||
|
||||
app.enableCors();
|
||||
|
||||
const swaggerEnabled =
|
||||
config.get<string>('SWAGGER_ENABLED') === 'true';
|
||||
const swaggerEnabled = config.get<string>('SWAGGER_ENABLED') === 'true';
|
||||
|
||||
if (swaggerEnabled) {
|
||||
const swaggerConfig = new DocumentBuilder()
|
||||
@@ -35,7 +34,7 @@ async function bootstrap() {
|
||||
|
||||
const document = SwaggerModule.createDocument(app, swaggerConfig);
|
||||
|
||||
SwaggerModule.setup('docs', app, document);
|
||||
SwaggerModule.setup('ApiList', app, document);
|
||||
}
|
||||
|
||||
const port = config.get<number>('PORT') || 3000;
|
||||
|
||||
Reference in New Issue
Block a user