fase(17): licensing module with RSA validation
This commit is contained in:
9
dist/main.js
vendored
9
dist/main.js
vendored
@@ -57,6 +57,9 @@ const KyselyIntegrationRepository_1 = require("./modules/integrations/infrastruc
|
||||
const KyselyWebhookEndpointRepository_1 = require("./modules/integrations/infrastructure/repositories/KyselyWebhookEndpointRepository");
|
||||
const WebhookDispatcher_1 = require("./modules/integrations/infrastructure/webhooks/WebhookDispatcher");
|
||||
const OnFindingCreated_1 = require("./modules/integrations/application/event-handlers/OnFindingCreated");
|
||||
// Licensing module
|
||||
const RSALicenseValidator_1 = require("./modules/licensing/infrastructure/validators/RSALicenseValidator");
|
||||
const LicenseService_1 = require("./modules/licensing/application/LicenseService");
|
||||
// Job queue
|
||||
const SQLiteJobQueue_1 = require("./jobs/SQLiteJobQueue");
|
||||
const ExplorationWorker_1 = require("./jobs/workers/ExplorationWorker");
|
||||
@@ -119,7 +122,10 @@ async function bootstrap() {
|
||||
const listOrgMembersQuery = new ListOrgMembersQuery_1.ListOrgMembersQuery(orgRepo, userRepo);
|
||||
// 11. Reporting use cases
|
||||
const generateReport = new GenerateReportCommand_1.GenerateReportCommand(reportRepo, eventBus);
|
||||
// 11b. Integrations
|
||||
// 11b. Licensing
|
||||
const licenseValidator = new RSALicenseValidator_1.RSALicenseValidator();
|
||||
const licenseService = new LicenseService_1.LicenseService(licenseValidator);
|
||||
// 11c. Integrations
|
||||
const integrationRepo = new KyselyIntegrationRepository_1.KyselyIntegrationRepository(db);
|
||||
const webhookRepo = new KyselyWebhookEndpointRepository_1.KyselyWebhookEndpointRepository(db);
|
||||
const webhookDispatcher = new WebhookDispatcher_1.WebhookDispatcher(webhookRepo, logger);
|
||||
@@ -140,6 +146,7 @@ async function bootstrap() {
|
||||
fuzzingDeps: { runFuzz, repository: fuzzRepo },
|
||||
reportingDeps: { generateReport, reportRepository: reportRepo, jobQueue },
|
||||
integrationsDeps: { integrationRepo, webhookRepo },
|
||||
licenseService,
|
||||
authDeps: {
|
||||
registerCommand,
|
||||
loginCommand,
|
||||
|
||||
Reference in New Issue
Block a user