1
0
mirror of https://github.com/bitwarden/browser synced 2026-03-01 19:11:22 +00:00

feat: working remote cipher decryption

This commit is contained in:
Andreas Coroiu
2025-10-31 10:05:13 +01:00
parent cab3ae843b
commit 91d37d51f1
5 changed files with 55 additions and 24 deletions

View File

@@ -159,7 +159,9 @@ import { MigrationBuilderService } from "@bitwarden/common/platform/services/mig
import { MigrationRunner } from "@bitwarden/common/platform/services/migration-runner";
import { DefaultSdkClientFactory } from "@bitwarden/common/platform/services/sdk/default-sdk-client-factory";
import { DefaultSdkService } from "@bitwarden/common/platform/services/sdk/default-sdk.service";
import { LocalRemoteSdkService } from "@bitwarden/common/platform/services/sdk/local-remote-sdk.service";
import { NoopSdkClientFactory } from "@bitwarden/common/platform/services/sdk/noop-sdk-client-factory";
import { RemoteSdkService } from "@bitwarden/common/platform/services/sdk/remote-sdk.service";
import { SystemService } from "@bitwarden/common/platform/services/system.service";
import { UserAutoUnlockKeyService } from "@bitwarden/common/platform/services/user-auto-unlock-key.service";
import { PrimarySecondaryStorageService } from "@bitwarden/common/platform/storage/primary-secondary-storage.service";
@@ -476,6 +478,7 @@ export default class MainBackground {
loginToAutoFill: CipherView = null;
remoteSdkServerService: RemoteSdkServerService;
remoteSdkService: RemoteSdkService;
private commandsBackground: CommandsBackground;
private contextMenusBackground: ContextMenusBackground;
@@ -934,9 +937,16 @@ export default class MainBackground {
this.themeStateService = new DefaultThemeStateService(this.globalStateProvider);
this.remoteSdkService = new LocalRemoteSdkService(
this.sdkService,
this.accountService,
this.authService,
);
this.cipherEncryptionService = new DefaultCipherEncryptionService(
this.sdkService,
this.logService,
this.remoteSdkService,
);
this.cipherService = new CipherService(