1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

Removed auth status reference from browser-fido2-user-interface service

This commit is contained in:
gbubemismith
2023-09-04 15:35:29 -04:00
parent a655b96bfe
commit d53bd3fe5b
2 changed files with 2 additions and 10 deletions

View File

@@ -564,10 +564,7 @@ export default class MainBackground {
this.browserPopoutWindowService = new BrowserPopoutWindowService();
this.popupUtilsService = new PopupUtilsService(this.isPrivateMode);
this.fido2UserInterfaceService = new BrowserFido2UserInterfaceService(
this.popupUtilsService,
this.authService
);
this.fido2UserInterfaceService = new BrowserFido2UserInterfaceService(this.popupUtilsService);
this.fido2AuthenticatorService = new Fido2AuthenticatorService(
this.cipherService,
this.fido2UserInterfaceService,

View File

@@ -14,7 +14,6 @@ import {
fromEventPattern,
} from "rxjs";
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
import { Utils } from "@bitwarden/common/platform/misc/utils";
import { UserRequestedFallbackAbortReason } from "@bitwarden/common/vault/abstractions/fido2/fido2-client.service.abstraction";
import {
@@ -102,7 +101,7 @@ export type BrowserFido2Message = { sessionId: string } & (
);
export class BrowserFido2UserInterfaceService implements Fido2UserInterfaceServiceAbstraction {
constructor(private popupUtilsService: PopupUtilsService, private authService: AuthService) {}
constructor(private popupUtilsService: PopupUtilsService) {}
async newSession(
fallbackSupported: boolean,
@@ -110,7 +109,6 @@ export class BrowserFido2UserInterfaceService implements Fido2UserInterfaceServi
): Promise<Fido2UserInterfaceSession> {
return await BrowserFido2UserInterfaceSession.create(
this.popupUtilsService,
this.authService,
fallbackSupported,
abortController
);
@@ -120,13 +118,11 @@ export class BrowserFido2UserInterfaceService implements Fido2UserInterfaceServi
export class BrowserFido2UserInterfaceSession implements Fido2UserInterfaceSession {
static async create(
popupUtilsService: PopupUtilsService,
authService: AuthService,
fallbackSupported: boolean,
abortController?: AbortController
): Promise<BrowserFido2UserInterfaceSession> {
return new BrowserFido2UserInterfaceSession(
popupUtilsService,
authService,
fallbackSupported,
abortController
);
@@ -148,7 +144,6 @@ export class BrowserFido2UserInterfaceSession implements Fido2UserInterfaceSessi
private constructor(
private readonly popupUtilsService: PopupUtilsService,
private readonly authService: AuthService,
private readonly fallbackSupported: boolean,
readonly abortController = new AbortController(),
readonly sessionId = Utils.newGuid()