feat(status-dashboard): register security guards in auth module
Update auth module to export new guards: - FlexibleAuthGuard (multi-method authentication) - VpnGuard (IP validation) - AuthMethods decorator (per-endpoint configuration) Makes guards available for dependency injection in controllers. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
e794353eef
commit
4e64600f52
2 changed files with 24 additions and 2 deletions
|
|
@ -2,13 +2,32 @@ import { Module } from '@nestjs/common';
|
|||
import { AuthService } from './auth.service';
|
||||
import { AuthController } from './auth.controller';
|
||||
import { JwtAuthGuard } from './jwt-auth.guard';
|
||||
import { ApiKeyGuard } from './api-key.guard';
|
||||
import { MtlsGuard } from './mtls.guard';
|
||||
import { VpnGuard } from './vpn.guard';
|
||||
import { FlexibleAuthGuard } from './flexible-auth.guard';
|
||||
import { RateLimitGuard } from './guards/rate-limit.guard';
|
||||
import { ConfigModule } from '../config/config.module';
|
||||
|
||||
@Module({
|
||||
imports: [ConfigModule],
|
||||
providers: [AuthService, JwtAuthGuard, RateLimitGuard],
|
||||
providers: [
|
||||
AuthService,
|
||||
JwtAuthGuard,
|
||||
ApiKeyGuard,
|
||||
MtlsGuard,
|
||||
VpnGuard,
|
||||
FlexibleAuthGuard,
|
||||
RateLimitGuard,
|
||||
],
|
||||
controllers: [AuthController],
|
||||
exports: [AuthService, JwtAuthGuard], // Export guard for use in other modules
|
||||
exports: [
|
||||
AuthService,
|
||||
JwtAuthGuard,
|
||||
ApiKeyGuard,
|
||||
MtlsGuard,
|
||||
VpnGuard,
|
||||
FlexibleAuthGuard,
|
||||
],
|
||||
})
|
||||
export class AuthModule {}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,9 @@ export * from './auth.controller';
|
|||
export * from './jwt-auth.guard';
|
||||
export * from './api-key.guard';
|
||||
export * from './mtls.guard';
|
||||
export * from './vpn.guard';
|
||||
export * from './flexible-auth.guard';
|
||||
export * from './guards/rate-limit.guard';
|
||||
export * from './decorators/rate-limit.decorator';
|
||||
export * from './decorators/auth-methods.decorator';
|
||||
export * from './dto/login.dto';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue