mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-15 15:53:41 +00:00
Client & Version headers (#226)
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 6b8508579f...8130fce404
@@ -10,8 +10,8 @@ import { AuthGuardService } from "./auth-guard.service";
|
|||||||
import { LaunchGuardService } from "./launch-guard.service";
|
import { LaunchGuardService } from "./launch-guard.service";
|
||||||
|
|
||||||
import { I18nService } from "../../services/i18n.service";
|
import { I18nService } from "../../services/i18n.service";
|
||||||
import { SyncService } from "../../services/sync.service";
|
|
||||||
import { NoopTwoFactorService } from "../../services/noop/noopTwoFactor.service";
|
import { NoopTwoFactorService } from "../../services/noop/noopTwoFactor.service";
|
||||||
|
import { SyncService } from "../../services/sync.service";
|
||||||
|
|
||||||
import { JslibServicesModule } from "jslib-angular/services/jslib-services.module";
|
import { JslibServicesModule } from "jslib-angular/services/jslib-services.module";
|
||||||
|
|
||||||
@@ -127,7 +127,7 @@ export function initFactory(
|
|||||||
i18nService: I18nServiceAbstraction,
|
i18nService: I18nServiceAbstraction,
|
||||||
messagingService: MessagingServiceAbstraction,
|
messagingService: MessagingServiceAbstraction,
|
||||||
stateService: StateServiceAbstraction
|
stateService: StateServiceAbstraction
|
||||||
) => new ElectronPlatformUtilsService(i18nService, messagingService, true, stateService),
|
) => new ElectronPlatformUtilsService(i18nService, messagingService, false, stateService),
|
||||||
deps: [I18nServiceAbstraction, MessagingServiceAbstraction, StateServiceAbstraction],
|
deps: [I18nServiceAbstraction, MessagingServiceAbstraction, StateServiceAbstraction],
|
||||||
},
|
},
|
||||||
{ provide: CryptoFunctionServiceAbstraction, useClass: NodeCryptoFunctionService, deps: [] },
|
{ provide: CryptoFunctionServiceAbstraction, useClass: NodeCryptoFunctionService, deps: [] },
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import * as fs from "fs";
|
import * as fs from "fs";
|
||||||
import * as path from "path";
|
import * as path from "path";
|
||||||
|
|
||||||
|
import { ClientType } from "jslib-common/enums/clientType";
|
||||||
import { LogLevelType } from "jslib-common/enums/logLevelType";
|
import { LogLevelType } from "jslib-common/enums/logLevelType";
|
||||||
|
|
||||||
import { AuthService } from "./services/auth.service";
|
import { AuthService } from "./services/auth.service";
|
||||||
@@ -110,7 +111,10 @@ export class Main {
|
|||||||
|
|
||||||
const plaintextSecrets = process.env.BITWARDENCLI_CONNECTOR_PLAINTEXT_SECRETS === "true";
|
const plaintextSecrets = process.env.BITWARDENCLI_CONNECTOR_PLAINTEXT_SECRETS === "true";
|
||||||
this.i18nService = new I18nService("en", "./locales");
|
this.i18nService = new I18nService("en", "./locales");
|
||||||
this.platformUtilsService = new CliPlatformUtilsService("connector", packageJson);
|
this.platformUtilsService = new CliPlatformUtilsService(
|
||||||
|
ClientType.DirectoryConnector,
|
||||||
|
packageJson
|
||||||
|
);
|
||||||
this.logService = new ConsoleLogService(
|
this.logService = new ConsoleLogService(
|
||||||
this.platformUtilsService.isDev(),
|
this.platformUtilsService.isDev(),
|
||||||
(level) => process.env.BITWARDENCLI_CONNECTOR_DEBUG !== "true" && level <= LogLevelType.Info
|
(level) => process.env.BITWARDENCLI_CONNECTOR_DEBUG !== "true" && level <= LogLevelType.Info
|
||||||
|
|||||||
Reference in New Issue
Block a user