mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-12 00:41:29 +01:00
[PM-11528] Move Lock to KM ownership (#12407)
* update code owners
* Move lock component v2 to KM
* Add @bitwarden/key-management/angular to tsconfigs
* Move lock component service to KM
* Move lock component v1 to KM
* Update imports
* Move into @bitwarden/key-management
* Revert "Move into @bitwarden/key-management"
This reverts commit b7514fb8c2
.
* Add to tsconfig.libs
This commit is contained in:
parent
91d6963074
commit
c0d3fe15d1
1
.github/CODEOWNERS
vendored
1
.github/CODEOWNERS
vendored
@ -126,6 +126,7 @@ apps/web/src/app/key-management @bitwarden/team-key-management-dev
|
|||||||
apps/browser/src/key-management @bitwarden/team-key-management-dev
|
apps/browser/src/key-management @bitwarden/team-key-management-dev
|
||||||
apps/cli/src/key-management @bitwarden/team-key-management-dev
|
apps/cli/src/key-management @bitwarden/team-key-management-dev
|
||||||
libs/key-management @bitwarden/team-key-management-dev
|
libs/key-management @bitwarden/team-key-management-dev
|
||||||
|
libs/common/src/key-management @bitwarden/team-key-management-dev
|
||||||
|
|
||||||
apps/desktop/destkop_native/core/src/biometric/ @bitwarden/team-key-management-dev
|
apps/desktop/destkop_native/core/src/biometric/ @bitwarden/team-key-management-dev
|
||||||
apps/desktop/src/services/native-messaging.service.ts @bitwarden/team-key-management-dev
|
apps/desktop/src/services/native-messaging.service.ts @bitwarden/team-key-management-dev
|
||||||
|
@ -2,7 +2,6 @@ import { TestBed } from "@angular/core/testing";
|
|||||||
import { mock, MockProxy } from "jest-mock-extended";
|
import { mock, MockProxy } from "jest-mock-extended";
|
||||||
import { firstValueFrom, of } from "rxjs";
|
import { firstValueFrom, of } from "rxjs";
|
||||||
|
|
||||||
import { BiometricsDisableReason, UnlockOptions } from "@bitwarden/auth/angular";
|
|
||||||
import {
|
import {
|
||||||
PinServiceAbstraction,
|
PinServiceAbstraction,
|
||||||
UserDecryptionOptionsServiceAbstraction,
|
UserDecryptionOptionsServiceAbstraction,
|
||||||
@ -11,8 +10,9 @@ import { VaultTimeoutSettingsService } from "@bitwarden/common/abstractions/vaul
|
|||||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
import { UserId } from "@bitwarden/common/types/guid";
|
import { UserId } from "@bitwarden/common/types/guid";
|
||||||
import { KeyService, BiometricsService } from "@bitwarden/key-management";
|
import { KeyService, BiometricsService } from "@bitwarden/key-management";
|
||||||
|
import { BiometricsDisableReason, UnlockOptions } from "@bitwarden/key-management/angular";
|
||||||
|
|
||||||
import { BrowserRouterService } from "../platform/popup/services/browser-router.service";
|
import { BrowserRouterService } from "../../../platform/popup/services/browser-router.service";
|
||||||
|
|
||||||
import { ExtensionLockComponentService } from "./extension-lock-component.service";
|
import { ExtensionLockComponentService } from "./extension-lock-component.service";
|
||||||
|
|
@ -3,11 +3,6 @@
|
|||||||
import { inject } from "@angular/core";
|
import { inject } from "@angular/core";
|
||||||
import { combineLatest, defer, map, Observable } from "rxjs";
|
import { combineLatest, defer, map, Observable } from "rxjs";
|
||||||
|
|
||||||
import {
|
|
||||||
BiometricsDisableReason,
|
|
||||||
LockComponentService,
|
|
||||||
UnlockOptions,
|
|
||||||
} from "@bitwarden/auth/angular";
|
|
||||||
import {
|
import {
|
||||||
PinServiceAbstraction,
|
PinServiceAbstraction,
|
||||||
UserDecryptionOptionsServiceAbstraction,
|
UserDecryptionOptionsServiceAbstraction,
|
||||||
@ -17,9 +12,14 @@ import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/pl
|
|||||||
import { KeySuffixOptions } from "@bitwarden/common/platform/enums";
|
import { KeySuffixOptions } from "@bitwarden/common/platform/enums";
|
||||||
import { UserId } from "@bitwarden/common/types/guid";
|
import { UserId } from "@bitwarden/common/types/guid";
|
||||||
import { KeyService, BiometricsService } from "@bitwarden/key-management";
|
import { KeyService, BiometricsService } from "@bitwarden/key-management";
|
||||||
|
import {
|
||||||
|
LockComponentService,
|
||||||
|
BiometricsDisableReason,
|
||||||
|
UnlockOptions,
|
||||||
|
} from "@bitwarden/key-management/angular";
|
||||||
|
|
||||||
import { BiometricErrors, BiometricErrorTypes } from "../models/biometricErrors";
|
import { BiometricErrors, BiometricErrorTypes } from "../../../models/biometricErrors";
|
||||||
import { BrowserRouterService } from "../platform/popup/services/browser-router.service";
|
import { BrowserRouterService } from "../../../platform/popup/services/browser-router.service";
|
||||||
|
|
||||||
export class ExtensionLockComponentService implements LockComponentService {
|
export class ExtensionLockComponentService implements LockComponentService {
|
||||||
private readonly userDecryptionOptionsService = inject(UserDecryptionOptionsServiceAbstraction);
|
private readonly userDecryptionOptionsService = inject(UserDecryptionOptionsServiceAbstraction);
|
@ -25,7 +25,6 @@ import {
|
|||||||
LoginComponent,
|
LoginComponent,
|
||||||
LoginSecondaryContentComponent,
|
LoginSecondaryContentComponent,
|
||||||
LockIcon,
|
LockIcon,
|
||||||
LockComponent,
|
|
||||||
LoginViaAuthRequestComponent,
|
LoginViaAuthRequestComponent,
|
||||||
PasswordHintComponent,
|
PasswordHintComponent,
|
||||||
RegistrationFinishComponent,
|
RegistrationFinishComponent,
|
||||||
@ -43,6 +42,7 @@ import {
|
|||||||
TwoFactorTimeoutIcon,
|
TwoFactorTimeoutIcon,
|
||||||
} from "@bitwarden/auth/angular";
|
} from "@bitwarden/auth/angular";
|
||||||
import { FeatureFlag } from "@bitwarden/common/enums/feature-flag.enum";
|
import { FeatureFlag } from "@bitwarden/common/enums/feature-flag.enum";
|
||||||
|
import { LockComponent } from "@bitwarden/key-management/angular";
|
||||||
import {
|
import {
|
||||||
NewDeviceVerificationNoticePageOneComponent,
|
NewDeviceVerificationNoticePageOneComponent,
|
||||||
NewDeviceVerificationNoticePageTwoComponent,
|
NewDeviceVerificationNoticePageTwoComponent,
|
||||||
|
@ -24,7 +24,6 @@ import { JslibServicesModule } from "@bitwarden/angular/services/jslib-services.
|
|||||||
import {
|
import {
|
||||||
AnonLayoutWrapperDataService,
|
AnonLayoutWrapperDataService,
|
||||||
LoginComponentService,
|
LoginComponentService,
|
||||||
LockComponentService,
|
|
||||||
SsoComponentService,
|
SsoComponentService,
|
||||||
LoginDecryptionOptionsService,
|
LoginDecryptionOptionsService,
|
||||||
} from "@bitwarden/auth/angular";
|
} from "@bitwarden/auth/angular";
|
||||||
@ -115,6 +114,7 @@ import {
|
|||||||
BiometricStateService,
|
BiometricStateService,
|
||||||
BiometricsService,
|
BiometricsService,
|
||||||
} from "@bitwarden/key-management";
|
} from "@bitwarden/key-management";
|
||||||
|
import { LockComponentService } from "@bitwarden/key-management/angular";
|
||||||
import { PasswordRepromptService } from "@bitwarden/vault";
|
import { PasswordRepromptService } from "@bitwarden/vault";
|
||||||
|
|
||||||
import { ForegroundLockService } from "../../auth/popup/accounts/foreground-lock.service";
|
import { ForegroundLockService } from "../../auth/popup/accounts/foreground-lock.service";
|
||||||
@ -127,6 +127,7 @@ import AutofillService from "../../autofill/services/autofill.service";
|
|||||||
import { InlineMenuFieldQualificationService } from "../../autofill/services/inline-menu-field-qualification.service";
|
import { InlineMenuFieldQualificationService } from "../../autofill/services/inline-menu-field-qualification.service";
|
||||||
import { ForegroundBrowserBiometricsService } from "../../key-management/biometrics/foreground-browser-biometrics";
|
import { ForegroundBrowserBiometricsService } from "../../key-management/biometrics/foreground-browser-biometrics";
|
||||||
import { BrowserKeyService } from "../../key-management/browser-key.service";
|
import { BrowserKeyService } from "../../key-management/browser-key.service";
|
||||||
|
import { ExtensionLockComponentService } from "../../key-management/lock/services/extension-lock-component.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 */
|
||||||
@ -150,7 +151,6 @@ import { BrowserStorageServiceProvider } from "../../platform/storage/browser-st
|
|||||||
import { ForegroundMemoryStorageService } from "../../platform/storage/foreground-memory-storage.service";
|
import { ForegroundMemoryStorageService } from "../../platform/storage/foreground-memory-storage.service";
|
||||||
import { ForegroundSyncService } from "../../platform/sync/foreground-sync.service";
|
import { ForegroundSyncService } from "../../platform/sync/foreground-sync.service";
|
||||||
import { fromChromeRuntimeMessaging } from "../../platform/utils/from-chrome-runtime-messaging";
|
import { fromChromeRuntimeMessaging } from "../../platform/utils/from-chrome-runtime-messaging";
|
||||||
import { ExtensionLockComponentService } from "../../services/extension-lock-component.service";
|
|
||||||
import { ForegroundVaultTimeoutService } from "../../services/vault-timeout/foreground-vault-timeout.service";
|
import { ForegroundVaultTimeoutService } from "../../services/vault-timeout/foreground-vault-timeout.service";
|
||||||
import { FilePopoutUtilsService } from "../../tools/popup/services/file-popout-utils.service";
|
import { FilePopoutUtilsService } from "../../tools/popup/services/file-popout-utils.service";
|
||||||
import { Fido2UserVerificationService } from "../../vault/services/fido2-user-verification.service";
|
import { Fido2UserVerificationService } from "../../vault/services/fido2-user-verification.service";
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
"@bitwarden/send-ui": ["../../libs/tools/send/send-ui/src"],
|
"@bitwarden/send-ui": ["../../libs/tools/send/send-ui/src"],
|
||||||
"@bitwarden/tools-card": ["../../libs/tools/card/src"],
|
"@bitwarden/tools-card": ["../../libs/tools/card/src"],
|
||||||
"@bitwarden/key-management": ["../../libs/key-management/src"],
|
"@bitwarden/key-management": ["../../libs/key-management/src"],
|
||||||
|
"@bitwarden/key-management/angular": ["../../libs/key-management/src/angular"],
|
||||||
"@bitwarden/vault": ["../../libs/vault/src"]
|
"@bitwarden/vault": ["../../libs/vault/src"]
|
||||||
},
|
},
|
||||||
"plugins": [
|
"plugins": [
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
"../../libs/tools/export/vault-export/vault-export-core/src"
|
"../../libs/tools/export/vault-export/vault-export-core/src"
|
||||||
],
|
],
|
||||||
"@bitwarden/key-management": ["../../libs/key-management/src"],
|
"@bitwarden/key-management": ["../../libs/key-management/src"],
|
||||||
|
"@bitwarden/key-management/angular": ["../../libs/key-management/src/angular"],
|
||||||
"@bitwarden/node/*": ["../../libs/node/src/*"]
|
"@bitwarden/node/*": ["../../libs/node/src/*"]
|
||||||
},
|
},
|
||||||
"plugins": [
|
"plugins": [
|
||||||
|
@ -22,7 +22,6 @@ import {
|
|||||||
LoginComponent,
|
LoginComponent,
|
||||||
LoginSecondaryContentComponent,
|
LoginSecondaryContentComponent,
|
||||||
LockIcon,
|
LockIcon,
|
||||||
LockComponent,
|
|
||||||
LoginViaAuthRequestComponent,
|
LoginViaAuthRequestComponent,
|
||||||
PasswordHintComponent,
|
PasswordHintComponent,
|
||||||
RegistrationFinishComponent,
|
RegistrationFinishComponent,
|
||||||
@ -40,6 +39,7 @@ import {
|
|||||||
TwoFactorTimeoutIcon,
|
TwoFactorTimeoutIcon,
|
||||||
} from "@bitwarden/auth/angular";
|
} from "@bitwarden/auth/angular";
|
||||||
import { FeatureFlag } from "@bitwarden/common/enums/feature-flag.enum";
|
import { FeatureFlag } from "@bitwarden/common/enums/feature-flag.enum";
|
||||||
|
import { LockComponent } from "@bitwarden/key-management/angular";
|
||||||
import {
|
import {
|
||||||
NewDeviceVerificationNoticePageOneComponent,
|
NewDeviceVerificationNoticePageOneComponent,
|
||||||
NewDeviceVerificationNoticePageTwoComponent,
|
NewDeviceVerificationNoticePageTwoComponent,
|
||||||
|
@ -24,7 +24,6 @@ import { JslibServicesModule } from "@bitwarden/angular/services/jslib-services.
|
|||||||
import {
|
import {
|
||||||
LoginComponentService,
|
LoginComponentService,
|
||||||
SetPasswordJitService,
|
SetPasswordJitService,
|
||||||
LockComponentService,
|
|
||||||
SsoComponentService,
|
SsoComponentService,
|
||||||
DefaultSsoComponentService,
|
DefaultSsoComponentService,
|
||||||
} from "@bitwarden/auth/angular";
|
} from "@bitwarden/auth/angular";
|
||||||
@ -96,6 +95,7 @@ import {
|
|||||||
BiometricStateService,
|
BiometricStateService,
|
||||||
BiometricsService,
|
BiometricsService,
|
||||||
} from "@bitwarden/key-management";
|
} from "@bitwarden/key-management";
|
||||||
|
import { LockComponentService } from "@bitwarden/key-management/angular";
|
||||||
|
|
||||||
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";
|
||||||
@ -103,6 +103,7 @@ import { DesktopAutofillSettingsService } from "../../autofill/services/desktop-
|
|||||||
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";
|
||||||
import { ElectronBiometricsService } from "../../key-management/biometrics/electron-biometrics.service";
|
import { ElectronBiometricsService } from "../../key-management/biometrics/electron-biometrics.service";
|
||||||
|
import { DesktopLockComponentService } from "../../key-management/lock/services/desktop-lock-component.service";
|
||||||
import { flagEnabled } from "../../platform/flags";
|
import { flagEnabled } from "../../platform/flags";
|
||||||
import { DesktopSettingsService } from "../../platform/services/desktop-settings.service";
|
import { DesktopSettingsService } from "../../platform/services/desktop-settings.service";
|
||||||
import { ElectronKeyService } from "../../platform/services/electron-key.service";
|
import { ElectronKeyService } from "../../platform/services/electron-key.service";
|
||||||
@ -118,7 +119,6 @@ import { I18nRendererService } from "../../platform/services/i18n.renderer.servi
|
|||||||
import { fromIpcMessaging } from "../../platform/utils/from-ipc-messaging";
|
import { fromIpcMessaging } from "../../platform/utils/from-ipc-messaging";
|
||||||
import { fromIpcSystemTheme } from "../../platform/utils/from-ipc-system-theme";
|
import { fromIpcSystemTheme } from "../../platform/utils/from-ipc-system-theme";
|
||||||
import { BiometricMessageHandlerService } from "../../services/biometric-message-handler.service";
|
import { BiometricMessageHandlerService } from "../../services/biometric-message-handler.service";
|
||||||
import { DesktopLockComponentService } from "../../services/desktop-lock-component.service";
|
|
||||||
import { DuckDuckGoMessageHandlerService } from "../../services/duckduckgo-message-handler.service";
|
import { DuckDuckGoMessageHandlerService } from "../../services/duckduckgo-message-handler.service";
|
||||||
import { EncryptedMessageHandlerService } from "../../services/encrypted-message-handler.service";
|
import { EncryptedMessageHandlerService } from "../../services/encrypted-message-handler.service";
|
||||||
import { NativeMessagingService } from "../../services/native-messaging.service";
|
import { NativeMessagingService } from "../../services/native-messaging.service";
|
||||||
|
@ -2,7 +2,6 @@ import { TestBed } from "@angular/core/testing";
|
|||||||
import { mock, MockProxy } from "jest-mock-extended";
|
import { mock, MockProxy } from "jest-mock-extended";
|
||||||
import { firstValueFrom, of } from "rxjs";
|
import { firstValueFrom, of } from "rxjs";
|
||||||
|
|
||||||
import { BiometricsDisableReason, UnlockOptions } from "@bitwarden/auth/angular";
|
|
||||||
import {
|
import {
|
||||||
PinServiceAbstraction,
|
PinServiceAbstraction,
|
||||||
UserDecryptionOptionsServiceAbstraction,
|
UserDecryptionOptionsServiceAbstraction,
|
||||||
@ -12,6 +11,7 @@ import { DeviceType } from "@bitwarden/common/enums";
|
|||||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
import { UserId } from "@bitwarden/common/types/guid";
|
import { UserId } from "@bitwarden/common/types/guid";
|
||||||
import { KeyService, BiometricsService } from "@bitwarden/key-management";
|
import { KeyService, BiometricsService } from "@bitwarden/key-management";
|
||||||
|
import { BiometricsDisableReason, UnlockOptions } from "@bitwarden/key-management/angular";
|
||||||
|
|
||||||
import { DesktopLockComponentService } from "./desktop-lock-component.service";
|
import { DesktopLockComponentService } from "./desktop-lock-component.service";
|
||||||
|
|
@ -1,11 +1,6 @@
|
|||||||
import { inject } from "@angular/core";
|
import { inject } from "@angular/core";
|
||||||
import { combineLatest, defer, map, Observable } from "rxjs";
|
import { combineLatest, defer, map, Observable } from "rxjs";
|
||||||
|
|
||||||
import {
|
|
||||||
BiometricsDisableReason,
|
|
||||||
LockComponentService,
|
|
||||||
UnlockOptions,
|
|
||||||
} from "@bitwarden/auth/angular";
|
|
||||||
import {
|
import {
|
||||||
PinServiceAbstraction,
|
PinServiceAbstraction,
|
||||||
UserDecryptionOptionsServiceAbstraction,
|
UserDecryptionOptionsServiceAbstraction,
|
||||||
@ -16,6 +11,11 @@ import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/pl
|
|||||||
import { KeySuffixOptions } from "@bitwarden/common/platform/enums";
|
import { KeySuffixOptions } from "@bitwarden/common/platform/enums";
|
||||||
import { UserId } from "@bitwarden/common/types/guid";
|
import { UserId } from "@bitwarden/common/types/guid";
|
||||||
import { KeyService, BiometricsService } from "@bitwarden/key-management";
|
import { KeyService, BiometricsService } from "@bitwarden/key-management";
|
||||||
|
import {
|
||||||
|
BiometricsDisableReason,
|
||||||
|
LockComponentService,
|
||||||
|
UnlockOptions,
|
||||||
|
} from "@bitwarden/key-management/angular";
|
||||||
|
|
||||||
export class DesktopLockComponentService implements LockComponentService {
|
export class DesktopLockComponentService implements LockComponentService {
|
||||||
private readonly userDecryptionOptionsService = inject(UserDecryptionOptionsServiceAbstraction);
|
private readonly userDecryptionOptionsService = inject(UserDecryptionOptionsServiceAbstraction);
|
@ -29,6 +29,7 @@
|
|||||||
"@bitwarden/importer/core": ["../../libs/importer/src"],
|
"@bitwarden/importer/core": ["../../libs/importer/src"],
|
||||||
"@bitwarden/importer/ui": ["../../libs/importer/src/components"],
|
"@bitwarden/importer/ui": ["../../libs/importer/src/components"],
|
||||||
"@bitwarden/key-management": ["../../libs/key-management/src"],
|
"@bitwarden/key-management": ["../../libs/key-management/src"],
|
||||||
|
"@bitwarden/key-management/angular": ["../../libs/key-management/src/angular"],
|
||||||
"@bitwarden/node/*": ["../../libs/node/src/*"],
|
"@bitwarden/node/*": ["../../libs/node/src/*"],
|
||||||
"@bitwarden/platform": ["../../libs/platform/src"],
|
"@bitwarden/platform": ["../../libs/platform/src"],
|
||||||
"@bitwarden/send-ui": ["../../libs/tools/send/send-ui/src"],
|
"@bitwarden/send-ui": ["../../libs/tools/send/send-ui/src"],
|
||||||
|
@ -3,4 +3,3 @@ export * from "./login-decryption-options";
|
|||||||
export * from "./webauthn-login";
|
export * from "./webauthn-login";
|
||||||
export * from "./set-password-jit";
|
export * from "./set-password-jit";
|
||||||
export * from "./registration";
|
export * from "./registration";
|
||||||
export * from "./web-lock-component.service";
|
|
||||||
|
@ -30,7 +30,6 @@ import { ModalService as ModalServiceAbstraction } from "@bitwarden/angular/serv
|
|||||||
import {
|
import {
|
||||||
RegistrationFinishService as RegistrationFinishServiceAbstraction,
|
RegistrationFinishService as RegistrationFinishServiceAbstraction,
|
||||||
LoginComponentService,
|
LoginComponentService,
|
||||||
LockComponentService,
|
|
||||||
SetPasswordJitService,
|
SetPasswordJitService,
|
||||||
SsoComponentService,
|
SsoComponentService,
|
||||||
LoginDecryptionOptionsService,
|
LoginDecryptionOptionsService,
|
||||||
@ -92,6 +91,7 @@ import {
|
|||||||
KeyService as KeyServiceAbstraction,
|
KeyService as KeyServiceAbstraction,
|
||||||
BiometricsService,
|
BiometricsService,
|
||||||
} from "@bitwarden/key-management";
|
} from "@bitwarden/key-management";
|
||||||
|
import { LockComponentService } from "@bitwarden/key-management/angular";
|
||||||
|
|
||||||
import { flagEnabled } from "../../utils/flags";
|
import { flagEnabled } from "../../utils/flags";
|
||||||
import { PolicyListService } from "../admin-console/core/policy-list.service";
|
import { PolicyListService } from "../admin-console/core/policy-list.service";
|
||||||
@ -99,13 +99,13 @@ import {
|
|||||||
WebSetPasswordJitService,
|
WebSetPasswordJitService,
|
||||||
WebRegistrationFinishService,
|
WebRegistrationFinishService,
|
||||||
WebLoginComponentService,
|
WebLoginComponentService,
|
||||||
WebLockComponentService,
|
|
||||||
WebLoginDecryptionOptionsService,
|
WebLoginDecryptionOptionsService,
|
||||||
} 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";
|
||||||
import { HtmlStorageService } from "../core/html-storage.service";
|
import { HtmlStorageService } from "../core/html-storage.service";
|
||||||
import { I18nService } from "../core/i18n.service";
|
import { I18nService } from "../core/i18n.service";
|
||||||
|
import { WebLockComponentService } from "../key-management/lock/services/web-lock-component.service";
|
||||||
import { WebProcessReloadService } from "../key-management/services/web-process-reload.service";
|
import { WebProcessReloadService } from "../key-management/services/web-process-reload.service";
|
||||||
import { WebBiometricsService } from "../key-management/web-biometric.service";
|
import { WebBiometricsService } from "../key-management/web-biometric.service";
|
||||||
import { WebEnvironmentService } from "../platform/web-environment.service";
|
import { WebEnvironmentService } from "../platform/web-environment.service";
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
import { inject } from "@angular/core";
|
import { inject } from "@angular/core";
|
||||||
import { map, Observable } from "rxjs";
|
import { map, Observable } from "rxjs";
|
||||||
|
|
||||||
import { LockComponentService, UnlockOptions } from "@bitwarden/auth/angular";
|
|
||||||
import {
|
import {
|
||||||
UserDecryptionOptions,
|
UserDecryptionOptions,
|
||||||
UserDecryptionOptionsServiceAbstraction,
|
UserDecryptionOptionsServiceAbstraction,
|
||||||
} from "@bitwarden/auth/common";
|
} from "@bitwarden/auth/common";
|
||||||
import { UserId } from "@bitwarden/common/types/guid";
|
import { UserId } from "@bitwarden/common/types/guid";
|
||||||
|
import { LockComponentService, UnlockOptions } from "@bitwarden/key-management/angular";
|
||||||
|
|
||||||
export class WebLockComponentService implements LockComponentService {
|
export class WebLockComponentService implements LockComponentService {
|
||||||
private readonly userDecryptionOptionsService = inject(UserDecryptionOptionsServiceAbstraction);
|
private readonly userDecryptionOptionsService = inject(UserDecryptionOptionsServiceAbstraction);
|
@ -25,7 +25,6 @@ import {
|
|||||||
RegistrationLinkExpiredComponent,
|
RegistrationLinkExpiredComponent,
|
||||||
LoginComponent,
|
LoginComponent,
|
||||||
LoginSecondaryContentComponent,
|
LoginSecondaryContentComponent,
|
||||||
LockComponent,
|
|
||||||
LockIcon,
|
LockIcon,
|
||||||
TwoFactorTimeoutIcon,
|
TwoFactorTimeoutIcon,
|
||||||
UserLockIcon,
|
UserLockIcon,
|
||||||
@ -40,6 +39,7 @@ import {
|
|||||||
LoginDecryptionOptionsComponent,
|
LoginDecryptionOptionsComponent,
|
||||||
} from "@bitwarden/auth/angular";
|
} from "@bitwarden/auth/angular";
|
||||||
import { FeatureFlag } from "@bitwarden/common/enums/feature-flag.enum";
|
import { FeatureFlag } from "@bitwarden/common/enums/feature-flag.enum";
|
||||||
|
import { LockComponent } from "@bitwarden/key-management/angular";
|
||||||
import {
|
import {
|
||||||
NewDeviceVerificationNoticePageOneComponent,
|
NewDeviceVerificationNoticePageOneComponent,
|
||||||
NewDeviceVerificationNoticePageTwoComponent,
|
NewDeviceVerificationNoticePageTwoComponent,
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
"@bitwarden/importer/core": ["../../libs/importer/src"],
|
"@bitwarden/importer/core": ["../../libs/importer/src"],
|
||||||
"@bitwarden/importer/ui": ["../../libs/importer/src/components"],
|
"@bitwarden/importer/ui": ["../../libs/importer/src/components"],
|
||||||
"@bitwarden/key-management": ["../../libs/key-management/src"],
|
"@bitwarden/key-management": ["../../libs/key-management/src"],
|
||||||
|
"@bitwarden/key-management/angular": ["../../libs/key-management/src/angular"],
|
||||||
"@bitwarden/platform": ["../../libs/platform/src"],
|
"@bitwarden/platform": ["../../libs/platform/src"],
|
||||||
"@bitwarden/send-ui": ["../../libs/tools/send/send-ui/src"],
|
"@bitwarden/send-ui": ["../../libs/tools/send/send-ui/src"],
|
||||||
"@bitwarden/tools-card": ["../../libs/tools/card/src"],
|
"@bitwarden/tools-card": ["../../libs/tools/card/src"],
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
"@bitwarden/generator-history": ["../../libs/tools/generator/extensions/history/src"],
|
"@bitwarden/generator-history": ["../../libs/tools/generator/extensions/history/src"],
|
||||||
"@bitwarden/generator-navigation": ["../../libs/tools/generator/extensions/navigation/src"],
|
"@bitwarden/generator-navigation": ["../../libs/tools/generator/extensions/navigation/src"],
|
||||||
"@bitwarden/key-management": ["../../libs/key-management/src"],
|
"@bitwarden/key-management": ["../../libs/key-management/src"],
|
||||||
|
"@bitwarden/key-management/angular": ["../../libs/key-management/src/angular"],
|
||||||
"@bitwarden/vault-export-core": [
|
"@bitwarden/vault-export-core": [
|
||||||
"../../libs/tools/export/vault-export/vault-export-core/src"
|
"../../libs/tools/export/vault-export/vault-export-core/src"
|
||||||
],
|
],
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
"@bitwarden/send-ui": ["../../libs/tools/send/send-ui/src"],
|
"@bitwarden/send-ui": ["../../libs/tools/send/send-ui/src"],
|
||||||
"@bitwarden/tools-card": ["../../libs/tools/card/src"],
|
"@bitwarden/tools-card": ["../../libs/tools/card/src"],
|
||||||
"@bitwarden/key-management": ["../../libs/key-management/src"],
|
"@bitwarden/key-management": ["../../libs/key-management/src"],
|
||||||
|
"@bitwarden/key-management/angular": ["../../libs/key-management/src/angular"],
|
||||||
"@bitwarden/platform": ["../../libs/platform/src"],
|
"@bitwarden/platform": ["../../libs/platform/src"],
|
||||||
"@bitwarden/vault": ["../../libs/vault/src"],
|
"@bitwarden/vault": ["../../libs/vault/src"],
|
||||||
"@bitwarden/web-vault/*": ["../../apps/web/src/*"],
|
"@bitwarden/web-vault/*": ["../../apps/web/src/*"],
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
"@bitwarden/importer/core": ["../../libs/importer/src"],
|
"@bitwarden/importer/core": ["../../libs/importer/src"],
|
||||||
"@bitwarden/importer/ui": ["../../libs/importer/src/components"],
|
"@bitwarden/importer/ui": ["../../libs/importer/src/components"],
|
||||||
"@bitwarden/key-management": ["../../libs/key-management/src"],
|
"@bitwarden/key-management": ["../../libs/key-management/src"],
|
||||||
|
"@bitwarden/key-management/angular": ["../../libs/key-management/src/angular"],
|
||||||
"@bitwarden/platform": ["../../libs/platform/src"],
|
"@bitwarden/platform": ["../../libs/platform/src"],
|
||||||
"@bitwarden/send-ui": ["../../libs/tools/send/send-ui/src"],
|
"@bitwarden/send-ui": ["../../libs/tools/send/send-ui/src"],
|
||||||
"@bitwarden/tools-card": ["../../libs/tools/card/src"],
|
"@bitwarden/tools-card": ["../../libs/tools/card/src"],
|
||||||
|
@ -57,10 +57,6 @@ export * from "./user-verification/user-verification-dialog.component";
|
|||||||
export * from "./user-verification/user-verification-dialog.types";
|
export * from "./user-verification/user-verification-dialog.types";
|
||||||
export * from "./user-verification/user-verification-form-input.component";
|
export * from "./user-verification/user-verification-form-input.component";
|
||||||
|
|
||||||
// lock
|
|
||||||
export * from "./lock/lock.component";
|
|
||||||
export * from "./lock/lock-component.service";
|
|
||||||
|
|
||||||
// vault timeout
|
// vault timeout
|
||||||
export * from "./vault-timeout-input/vault-timeout-input.component";
|
export * from "./vault-timeout-input/vault-timeout-input.component";
|
||||||
|
|
||||||
|
10
libs/key-management/src/angular/index.ts
Normal file
10
libs/key-management/src/angular/index.ts
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* This barrel file should only contain Angular exports
|
||||||
|
*/
|
||||||
|
|
||||||
|
export { LockComponent } from "./lock/components/lock.component";
|
||||||
|
export {
|
||||||
|
LockComponentService,
|
||||||
|
BiometricsDisableReason,
|
||||||
|
UnlockOptions,
|
||||||
|
} from "./lock/services/lock-component.service";
|
@ -7,6 +7,8 @@ import { Router } from "@angular/router";
|
|||||||
import { BehaviorSubject, firstValueFrom, Subject, switchMap, take, takeUntil } from "rxjs";
|
import { BehaviorSubject, firstValueFrom, Subject, switchMap, take, takeUntil } from "rxjs";
|
||||||
|
|
||||||
import { JslibModule } from "@bitwarden/angular/jslib.module";
|
import { JslibModule } from "@bitwarden/angular/jslib.module";
|
||||||
|
import { AnonLayoutWrapperDataService } from "@bitwarden/auth/angular";
|
||||||
|
import { PinServiceAbstraction } from "@bitwarden/auth/common";
|
||||||
import { InternalPolicyService } from "@bitwarden/common/admin-console/abstractions/policy/policy.service.abstraction";
|
import { InternalPolicyService } from "@bitwarden/common/admin-console/abstractions/policy/policy.service.abstraction";
|
||||||
import { MasterPasswordPolicyOptions } from "@bitwarden/common/admin-console/models/domain/master-password-policy-options";
|
import { MasterPasswordPolicyOptions } from "@bitwarden/common/admin-console/models/domain/master-password-policy-options";
|
||||||
import { Account, AccountService } from "@bitwarden/common/auth/abstractions/account.service";
|
import { Account, AccountService } from "@bitwarden/common/auth/abstractions/account.service";
|
||||||
@ -43,15 +45,12 @@ import {
|
|||||||
UserAsymmetricKeysRegenerationService,
|
UserAsymmetricKeysRegenerationService,
|
||||||
} from "@bitwarden/key-management";
|
} from "@bitwarden/key-management";
|
||||||
|
|
||||||
import { PinServiceAbstraction } from "../../common/abstractions";
|
|
||||||
import { AnonLayoutWrapperDataService } from "../anon-layout/anon-layout-wrapper-data.service";
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
UnlockOption,
|
UnlockOption,
|
||||||
LockComponentService,
|
LockComponentService,
|
||||||
UnlockOptions,
|
UnlockOptions,
|
||||||
UnlockOptionValue,
|
UnlockOptionValue,
|
||||||
} from "./lock-component.service";
|
} from "../services/lock-component.service";
|
||||||
|
|
||||||
const BroadcasterSubscriptionId = "LockComponent";
|
const BroadcasterSubscriptionId = "LockComponent";
|
||||||
|
|
@ -20,6 +20,7 @@
|
|||||||
"@bitwarden/importer/core": ["../importer/src"],
|
"@bitwarden/importer/core": ["../importer/src"],
|
||||||
"@bitwarden/importer/ui": ["../importer/src/components"],
|
"@bitwarden/importer/ui": ["../importer/src/components"],
|
||||||
"@bitwarden/key-management": ["../key-management/src"],
|
"@bitwarden/key-management": ["../key-management/src"],
|
||||||
|
"@bitwarden/key-management/angular": ["../key-management/src/angular"],
|
||||||
"@bitwarden/platform": ["../platform/src"],
|
"@bitwarden/platform": ["../platform/src"],
|
||||||
"@bitwarden/send-ui": ["../tools/send/send-ui/src"],
|
"@bitwarden/send-ui": ["../tools/send/send-ui/src"],
|
||||||
"@bitwarden/tools-card": ["../tools/card/src"],
|
"@bitwarden/tools-card": ["../tools/card/src"],
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
"@bitwarden/importer/core": ["./libs/importer/src"],
|
"@bitwarden/importer/core": ["./libs/importer/src"],
|
||||||
"@bitwarden/importer/ui": ["./libs/importer/src/components"],
|
"@bitwarden/importer/ui": ["./libs/importer/src/components"],
|
||||||
"@bitwarden/key-management": ["./libs/key-management/src"],
|
"@bitwarden/key-management": ["./libs/key-management/src"],
|
||||||
|
"@bitwarden/key-management/angular": ["./libs/key-management/src/angular"],
|
||||||
"@bitwarden/platform": ["./libs/platform/src"],
|
"@bitwarden/platform": ["./libs/platform/src"],
|
||||||
"@bitwarden/send-ui": ["./libs/tools/send/send-ui/src"],
|
"@bitwarden/send-ui": ["./libs/tools/send/send-ui/src"],
|
||||||
"@bitwarden/tools-card": ["./libs/tools/card/src"],
|
"@bitwarden/tools-card": ["./libs/tools/card/src"],
|
||||||
|
Loading…
Reference in New Issue
Block a user