fase(17): licensing module with RSA validation
This commit is contained in:
11
src/main.ts
11
src/main.ts
@@ -61,6 +61,10 @@ import { KyselyWebhookEndpointRepository } from './modules/integrations/infrastr
|
||||
import { WebhookDispatcher } from './modules/integrations/infrastructure/webhooks/WebhookDispatcher';
|
||||
import { OnFindingCreated } from './modules/integrations/application/event-handlers/OnFindingCreated';
|
||||
|
||||
// Licensing module
|
||||
import { RSALicenseValidator } from './modules/licensing/infrastructure/validators/RSALicenseValidator';
|
||||
import { LicenseService } from './modules/licensing/application/LicenseService';
|
||||
|
||||
// Job queue
|
||||
import { SQLiteJobQueue } from './jobs/SQLiteJobQueue';
|
||||
import { createExplorationJobHandler, EXPLORATION_JOB_TYPE } from './jobs/workers/ExplorationWorker';
|
||||
@@ -139,7 +143,11 @@ async function bootstrap(): Promise<void> {
|
||||
// 11. Reporting use cases
|
||||
const generateReport = new GenerateReportCommand(reportRepo, eventBus);
|
||||
|
||||
// 11b. Integrations
|
||||
// 11b. Licensing
|
||||
const licenseValidator = new RSALicenseValidator();
|
||||
const licenseService = new LicenseService(licenseValidator);
|
||||
|
||||
// 11c. Integrations
|
||||
const integrationRepo = new KyselyIntegrationRepository(db);
|
||||
const webhookRepo = new KyselyWebhookEndpointRepository(db);
|
||||
const webhookDispatcher = new WebhookDispatcher(webhookRepo, logger);
|
||||
@@ -165,6 +173,7 @@ async function bootstrap(): Promise<void> {
|
||||
fuzzingDeps: { runFuzz, repository: fuzzRepo },
|
||||
reportingDeps: { generateReport, reportRepository: reportRepo, jobQueue },
|
||||
integrationsDeps: { integrationRepo, webhookRepo },
|
||||
licenseService,
|
||||
authDeps: {
|
||||
registerCommand,
|
||||
loginCommand,
|
||||
|
||||
Reference in New Issue
Block a user