32 lines
1.0 KiB
TypeScript
32 lines
1.0 KiB
TypeScript
import { Module } from '@nestjs/common';
|
|
import { HttpModule } from '@nestjs/axios';
|
|
import { JwtModule } from '@nestjs/jwt';
|
|
import { StartupService } from './services/startup.service';
|
|
import { TokenService } from './services/token.service';
|
|
import { KeycloakApiService } from './services/keycloak-api.service';
|
|
import { AuthController } from './controllers/auth.controller';
|
|
import { HealthController } from '../health/health.controller';
|
|
import { UsersService } from '../users/services/users.service';
|
|
import { KeycloakJwtStrategy } from './services/keycloak.strategy';
|
|
import { JwtAuthGuard } from './guards/jwt.guard';
|
|
|
|
|
|
|
|
@Module({
|
|
imports: [
|
|
HttpModule,
|
|
JwtModule.register({}),
|
|
],
|
|
providers: [
|
|
KeycloakJwtStrategy,
|
|
JwtAuthGuard,
|
|
StartupService,
|
|
TokenService,
|
|
KeycloakApiService,
|
|
UsersService
|
|
],
|
|
controllers: [AuthController, HealthController],
|
|
exports: [JwtAuthGuard, StartupService, TokenService, KeycloakApiService, UsersService, JwtModule],
|
|
})
|
|
export class AuthModule {}
|