Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions backend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import * as Sentry from '@sentry/node';
import bodyParser from 'body-parser';
import { ValidationError } from 'class-validator';
import cookieParser from 'cookie-parser';
import rateLimit from 'express-rate-limit';
import helmet from 'helmet';
import { ApplicationModule } from './app.module.js';
import { WinstonLogger } from './entities/logging/winston-logger.js';
Expand Down Expand Up @@ -56,12 +55,6 @@ async function bootstrap() {
optionsSuccessStatus: 204,
});

const apiLimiter = rateLimit({
windowMs: 60 * 1000,
max: 200,
});

app.use('/api/', apiLimiter);
app.use(cookieParser());

app.use(bodyParser.json({ limit: '10mb' }));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ import {
ISaasSAMLRegisterUser,
ISuspendUsers,
} from './use-cases/saas-use-cases.interface.js';
import { SkipThrottle } from '@nestjs/throttler';

@UseInterceptors(SentryInterceptor)
@SkipThrottle()
@Controller('saas')
@ApiBearerAuth()
@ApiTags('saas')
Expand Down Expand Up @@ -228,7 +230,7 @@ export class SaasController {
companyId,
samlConfigId,
samlNameId,
samlAttributes
samlAttributes,
});
}
}
Loading