diff --git a/apps/desktop/src/app/app-routing.module.ts b/apps/desktop/src/app/app-routing.module.ts index 6dd6b2142f..8503680040 100644 --- a/apps/desktop/src/app/app-routing.module.ts +++ b/apps/desktop/src/app/app-routing.module.ts @@ -8,6 +8,7 @@ import { AccessibilityCookieComponent } from "../auth/accessibility-cookie.compo import { LoginGuard } from "../auth/guards/login.guard"; import { HintComponent } from "../auth/hint.component"; import { LockComponent } from "../auth/lock.component"; +import { LoginDecryptionOptionsComponent } from "../auth/login/login-decryption-options/login-decryption-options.component"; import { LoginWithDeviceComponent } from "../auth/login/login-with-device.component"; import { LoginComponent } from "../auth/login/login.component"; import { RegisterComponent } from "../auth/register.component"; @@ -37,6 +38,11 @@ const routes: Routes = [ component: LoginWithDeviceComponent, }, { path: "2fa", component: TwoFactorComponent }, + { + path: "login-initiated", + component: LoginDecryptionOptionsComponent, + canActivate: [], // TODO: do I need an unauth guard like web? + }, { path: "register", component: RegisterComponent }, { path: "vault", diff --git a/apps/desktop/src/auth/login/login-decryption-options/login-decryption-options.component.html b/apps/desktop/src/auth/login/login-decryption-options/login-decryption-options.component.html new file mode 100644 index 0000000000..c1fbd45571 --- /dev/null +++ b/apps/desktop/src/auth/login/login-decryption-options/login-decryption-options.component.html @@ -0,0 +1 @@ +nothing here yet diff --git a/apps/desktop/src/auth/login/login-decryption-options/login-decryption-options.component.ts b/apps/desktop/src/auth/login/login-decryption-options/login-decryption-options.component.ts new file mode 100644 index 0000000000..cb661ee6f9 --- /dev/null +++ b/apps/desktop/src/auth/login/login-decryption-options/login-decryption-options.component.ts @@ -0,0 +1,22 @@ +import { Component } from "@angular/core"; +import { FormBuilder } from "@angular/forms"; + +import { BaseLoginDecryptionOptionsComponent } from "@bitwarden/angular/auth/components/base-login-decryption-options.component"; +import { ApiService } from "@bitwarden/common/abstractions/api.service"; +import { OrganizationService } from "@bitwarden/common/admin-console/abstractions/organization/organization.service.abstraction"; +import { PolicyService } from "@bitwarden/common/admin-console/abstractions/policy/policy.service.abstraction"; + +@Component({ + selector: "desktop-login-decryption-options", + templateUrl: "login-decryption-options.component.html", +}) +export class LoginDecryptionOptionsComponent extends BaseLoginDecryptionOptionsComponent { + constructor( + formBuilder: FormBuilder, + apiService: ApiService, + organizationService: OrganizationService, + policyService: PolicyService + ) { + super(formBuilder, apiService, organizationService, policyService); + } +}