diff --git a/components/server/src/api/server.ts b/components/server/src/api/server.ts index 87f8e794fa50bd..369e59abefe736 100644 --- a/components/server/src/api/server.ts +++ b/components/server/src/api/server.ts @@ -57,6 +57,8 @@ import { SCMService } from "@gitpod/public-api/lib/gitpod/v1/scm_connect"; import { SSHService } from "@gitpod/public-api/lib/gitpod/v1/ssh_connect"; import { PrebuildServiceAPI } from "./prebuild-service-api"; import { PrebuildService } from "@gitpod/public-api/lib/gitpod/v1/prebuild_connect"; +import { VerificationServiceAPI } from "./verification-service-api"; +import { VerificationService } from "@gitpod/public-api/lib/gitpod/v1/verification_connect"; decorate(injectable(), PublicAPIConverter); @@ -84,6 +86,7 @@ export class API { @inject(UserService) private readonly userService: UserService; @inject(BearerAuth) private readonly bearerAuthenticator: BearerAuth; @inject(PrebuildServiceAPI) private readonly prebuildServiceApi: PrebuildServiceAPI; + @inject(VerificationServiceAPI) private readonly verificationServiceApi: VerificationServiceAPI; listenPrivate(): http.Server { const app = express(); @@ -133,6 +136,7 @@ export class API { service(SCMService, this.scmServiceAPI), service(SSHService, this.sshServiceApi), service(PrebuildService, this.prebuildServiceApi), + service(VerificationService, this.verificationServiceApi), ]) { router.service(type, new Proxy(impl, this.interceptService(type))); } @@ -387,6 +391,7 @@ export class API { bind(SSHServiceAPI).toSelf().inSingletonScope(); bind(StatsServiceAPI).toSelf().inSingletonScope(); bind(PrebuildServiceAPI).toSelf().inSingletonScope(); + bind(VerificationServiceAPI).toSelf().inSingletonScope(); bind(API).toSelf().inSingletonScope(); } } diff --git a/components/server/src/api/teams.spec.db.ts b/components/server/src/api/teams.spec.db.ts index de93ff18e2ba55..ce14ce6fa7e6ec 100644 --- a/components/server/src/api/teams.spec.db.ts +++ b/components/server/src/api/teams.spec.db.ts @@ -34,6 +34,7 @@ import { ContextService } from "../workspace/context-service"; import { ContextParser } from "../workspace/context-parser-service"; import { SSHKeyService } from "../user/sshkey-service"; import { PrebuildManager } from "../prebuilds/prebuild-manager"; +import { VerificationService } from "../auth/verification-service"; const expect = chai.expect; @@ -65,6 +66,7 @@ export class APITeamsServiceSpec { this.container.bind(ContextParser).toConstantValue({} as ContextParser); this.container.bind(SSHKeyService).toConstantValue({} as SSHKeyService); this.container.bind(PrebuildManager).toConstantValue({} as PrebuildManager); + this.container.bind(VerificationService).toConstantValue({} as VerificationService); // Clean-up database const typeorm = testContainer.get(TypeORM);