mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-22 02:21:34 +01:00
PM-8113 - Register TwoFactorAuthDuoComponentService implementation in each client.
This commit is contained in:
parent
5c49f6edb3
commit
f9737df56b
@ -30,6 +30,7 @@ import {
|
|||||||
LoginDecryptionOptionsService,
|
LoginDecryptionOptionsService,
|
||||||
TwoFactorAuthComponentService,
|
TwoFactorAuthComponentService,
|
||||||
TwoFactorAuthEmailComponentService,
|
TwoFactorAuthEmailComponentService,
|
||||||
|
TwoFactorAuthDuoComponentService,
|
||||||
} from "@bitwarden/auth/angular";
|
} from "@bitwarden/auth/angular";
|
||||||
import { LockService, LoginEmailService, PinServiceAbstraction } from "@bitwarden/auth/common";
|
import { LockService, LoginEmailService, PinServiceAbstraction } from "@bitwarden/auth/common";
|
||||||
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
||||||
@ -126,6 +127,7 @@ import { ExtensionLoginComponentService } from "../../auth/popup/login/extension
|
|||||||
import { ExtensionSsoComponentService } from "../../auth/popup/login/extension-sso-component.service";
|
import { ExtensionSsoComponentService } from "../../auth/popup/login/extension-sso-component.service";
|
||||||
import { ExtensionLoginDecryptionOptionsService } from "../../auth/popup/login-decryption-options/extension-login-decryption-options.service";
|
import { ExtensionLoginDecryptionOptionsService } from "../../auth/popup/login-decryption-options/extension-login-decryption-options.service";
|
||||||
import { ExtensionTwoFactorAuthComponentService } from "../../auth/services/extension-two-factor-auth-component.service";
|
import { ExtensionTwoFactorAuthComponentService } from "../../auth/services/extension-two-factor-auth-component.service";
|
||||||
|
import { ExtensionTwoFactorAuthDuoComponentService } from "../../auth/services/extension-two-factor-auth-duo-component.service";
|
||||||
import { ExtensionTwoFactorAuthEmailComponentService } from "../../auth/services/extension-two-factor-auth-email-component.service";
|
import { ExtensionTwoFactorAuthEmailComponentService } from "../../auth/services/extension-two-factor-auth-email-component.service";
|
||||||
import { AutofillService as AutofillServiceAbstraction } from "../../autofill/services/abstractions/autofill.service";
|
import { AutofillService as AutofillServiceAbstraction } from "../../autofill/services/abstractions/autofill.service";
|
||||||
import AutofillService from "../../autofill/services/autofill.service";
|
import AutofillService from "../../autofill/services/autofill.service";
|
||||||
@ -135,6 +137,7 @@ import { BrowserKeyService } from "../../key-management/browser-key.service";
|
|||||||
import { BrowserApi } from "../../platform/browser/browser-api";
|
import { BrowserApi } from "../../platform/browser/browser-api";
|
||||||
import { runInsideAngular } from "../../platform/browser/run-inside-angular.operator";
|
import { runInsideAngular } from "../../platform/browser/run-inside-angular.operator";
|
||||||
/* eslint-disable no-restricted-imports */
|
/* eslint-disable no-restricted-imports */
|
||||||
|
import { ZonedMessageListenerService } from "../../platform/browser/zoned-message-listener.service";
|
||||||
import { ChromeMessageSender } from "../../platform/messaging/chrome-message.sender";
|
import { ChromeMessageSender } from "../../platform/messaging/chrome-message.sender";
|
||||||
/* eslint-enable no-restricted-imports */
|
/* eslint-enable no-restricted-imports */
|
||||||
import { OffscreenDocumentService } from "../../platform/offscreen-document/abstractions/offscreen-document";
|
import { OffscreenDocumentService } from "../../platform/offscreen-document/abstractions/offscreen-document";
|
||||||
@ -552,6 +555,16 @@ const safeProviders: SafeProvider[] = [
|
|||||||
useClass: ExtensionTwoFactorAuthEmailComponentService,
|
useClass: ExtensionTwoFactorAuthEmailComponentService,
|
||||||
deps: [DialogService, WINDOW],
|
deps: [DialogService, WINDOW],
|
||||||
}),
|
}),
|
||||||
|
safeProvider({
|
||||||
|
provide: TwoFactorAuthDuoComponentService,
|
||||||
|
useClass: ExtensionTwoFactorAuthDuoComponentService,
|
||||||
|
deps: [
|
||||||
|
ZonedMessageListenerService,
|
||||||
|
EnvironmentService,
|
||||||
|
I18nServiceAbstraction,
|
||||||
|
PlatformUtilsService,
|
||||||
|
],
|
||||||
|
}),
|
||||||
safeProvider({
|
safeProvider({
|
||||||
provide: Fido2UserVerificationService,
|
provide: Fido2UserVerificationService,
|
||||||
useClass: Fido2UserVerificationService,
|
useClass: Fido2UserVerificationService,
|
||||||
|
@ -27,6 +27,7 @@ import {
|
|||||||
LockComponentService,
|
LockComponentService,
|
||||||
SsoComponentService,
|
SsoComponentService,
|
||||||
DefaultSsoComponentService,
|
DefaultSsoComponentService,
|
||||||
|
TwoFactorAuthDuoComponentService,
|
||||||
} from "@bitwarden/auth/angular";
|
} from "@bitwarden/auth/angular";
|
||||||
import {
|
import {
|
||||||
InternalUserDecryptionOptionsServiceAbstraction,
|
InternalUserDecryptionOptionsServiceAbstraction,
|
||||||
@ -99,6 +100,7 @@ import {
|
|||||||
|
|
||||||
import { DesktopLoginApprovalComponentService } from "../../auth/login/desktop-login-approval-component.service";
|
import { DesktopLoginApprovalComponentService } from "../../auth/login/desktop-login-approval-component.service";
|
||||||
import { DesktopLoginComponentService } from "../../auth/login/desktop-login-component.service";
|
import { DesktopLoginComponentService } from "../../auth/login/desktop-login-component.service";
|
||||||
|
import { DesktopTwoFactorAuthDuoComponentService } from "../../auth/services/desktop-two-factor-auth-duo-component.service";
|
||||||
import { DesktopAutofillSettingsService } from "../../autofill/services/desktop-autofill-settings.service";
|
import { DesktopAutofillSettingsService } from "../../autofill/services/desktop-autofill-settings.service";
|
||||||
import { DesktopAutofillService } from "../../autofill/services/desktop-autofill.service";
|
import { DesktopAutofillService } from "../../autofill/services/desktop-autofill.service";
|
||||||
import { DesktopFido2UserInterfaceService } from "../../autofill/services/desktop-fido2-user-interface.service";
|
import { DesktopFido2UserInterfaceService } from "../../autofill/services/desktop-fido2-user-interface.service";
|
||||||
@ -380,6 +382,16 @@ const safeProviders: SafeProvider[] = [
|
|||||||
ToastService,
|
ToastService,
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
|
safeProvider({
|
||||||
|
provide: TwoFactorAuthDuoComponentService,
|
||||||
|
useClass: DesktopTwoFactorAuthDuoComponentService,
|
||||||
|
deps: [
|
||||||
|
MessageListener,
|
||||||
|
EnvironmentService,
|
||||||
|
I18nServiceAbstraction,
|
||||||
|
PlatformUtilsServiceAbstraction,
|
||||||
|
],
|
||||||
|
}),
|
||||||
safeProvider({
|
safeProvider({
|
||||||
provide: SdkClientFactory,
|
provide: SdkClientFactory,
|
||||||
useClass: flagEnabled("sdk") ? DefaultSdkClientFactory : NoopSdkClientFactory,
|
useClass: flagEnabled("sdk") ? DefaultSdkClientFactory : NoopSdkClientFactory,
|
||||||
|
@ -1 +1,2 @@
|
|||||||
export * from "./web-two-factor-auth-component.service";
|
export * from "./web-two-factor-auth-component.service";
|
||||||
|
export * from "./web-two-factor-auth-duo-component.service";
|
||||||
|
@ -35,6 +35,7 @@ import {
|
|||||||
SsoComponentService,
|
SsoComponentService,
|
||||||
LoginDecryptionOptionsService,
|
LoginDecryptionOptionsService,
|
||||||
TwoFactorAuthComponentService,
|
TwoFactorAuthComponentService,
|
||||||
|
TwoFactorAuthDuoComponentService,
|
||||||
} from "@bitwarden/auth/angular";
|
} from "@bitwarden/auth/angular";
|
||||||
import {
|
import {
|
||||||
InternalUserDecryptionOptionsServiceAbstraction,
|
InternalUserDecryptionOptionsServiceAbstraction,
|
||||||
@ -103,6 +104,7 @@ import {
|
|||||||
WebLockComponentService,
|
WebLockComponentService,
|
||||||
WebLoginDecryptionOptionsService,
|
WebLoginDecryptionOptionsService,
|
||||||
WebTwoFactorAuthComponentService,
|
WebTwoFactorAuthComponentService,
|
||||||
|
WebTwoFactorAuthDuoComponentService,
|
||||||
} from "../auth";
|
} from "../auth";
|
||||||
import { WebSsoComponentService } from "../auth/core/services/login/web-sso-component.service";
|
import { WebSsoComponentService } from "../auth/core/services/login/web-sso-component.service";
|
||||||
import { AcceptOrganizationInviteService } from "../auth/organization-invite/accept-organization.service";
|
import { AcceptOrganizationInviteService } from "../auth/organization-invite/accept-organization.service";
|
||||||
@ -315,6 +317,11 @@ const safeProviders: SafeProvider[] = [
|
|||||||
useClass: WebSsoComponentService,
|
useClass: WebSsoComponentService,
|
||||||
deps: [I18nServiceAbstraction],
|
deps: [I18nServiceAbstraction],
|
||||||
}),
|
}),
|
||||||
|
safeProvider({
|
||||||
|
provide: TwoFactorAuthDuoComponentService,
|
||||||
|
useClass: WebTwoFactorAuthDuoComponentService,
|
||||||
|
deps: [PlatformUtilsService],
|
||||||
|
}),
|
||||||
safeProvider({
|
safeProvider({
|
||||||
provide: LoginDecryptionOptionsService,
|
provide: LoginDecryptionOptionsService,
|
||||||
useClass: WebLoginDecryptionOptionsService,
|
useClass: WebLoginDecryptionOptionsService,
|
||||||
|
Loading…
Reference in New Issue
Block a user