1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-07 02:53:28 +00:00

Browser integration verification always re-prompts after desktop app is locked (#14370)

This commit is contained in:
Maciej Zieniuk
2025-05-05 16:10:04 +02:00
committed by GitHub
parent a1e975a6ae
commit 9c8fc80971
2 changed files with 146 additions and 5 deletions

View File

@@ -91,12 +91,27 @@ export class BiometricMessageHandlerService {
private i18nService: I18nService,
) {
combineLatest([
this.desktopSettingService.browserIntegrationFingerprintEnabled$,
this.desktopSettingService.browserIntegrationEnabled$,
this.desktopSettingService.browserIntegrationFingerprintEnabled$,
])
.pipe(
concatMap(async () => {
await this.connectedApps.clear();
concatMap(async ([browserIntegrationEnabled, browserIntegrationFingerprintEnabled]) => {
if (!browserIntegrationEnabled) {
this.logService.info("[Native Messaging IPC] Clearing connected apps");
await this.connectedApps.clear();
} else if (!browserIntegrationFingerprintEnabled) {
this.logService.info(
"[Native Messaging IPC] Browser integration fingerprint validation is disabled, untrusting all connected apps",
);
const connected = await this.connectedApps.list();
for (const appId of connected) {
const connectedApp = await this.connectedApps.get(appId);
if (connectedApp != null) {
connectedApp.trusted = false;
await this.connectedApps.set(appId, connectedApp);
}
}
}
}),
)
.subscribe();