1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-23 19:53:43 +00:00

[PM-19532] - Add Fingerprint phrase to cli auth request (#14556)

* first pass at adding fingerprint phrase to auth requests

* Moved call to getFingerprint into the service layer. Added a new method for getting auth requests. Updated tests.

* Fixing the import

* Renaming to WithFingerprint
This commit is contained in:
Jared McCannon
2025-05-06 10:50:48 -05:00
committed by GitHub
parent 855dad7fcc
commit 5176345584
7 changed files with 110 additions and 6 deletions

View File

@@ -56,7 +56,7 @@
<tr bitRow alignContent="top" *ngFor="let r of rows$ | async">
<td bitCell class="tw-flex-col">
<div>{{ r.email }}</div>
<code class="tw-text-sm">{{ r.publicKey | fingerprint: r.email | async }}</code>
<code class="tw-text-sm">{{ r.fingerprintPhrase }}</code>
</td>
<td bitCell class="tw-flex-col">
<div>{{ r.requestDeviceType }}</div>

View File

@@ -8,6 +8,7 @@ import { OrganizationUserApiService } from "@bitwarden/admin-console/common";
import { SafeProvider, safeProvider } from "@bitwarden/angular/platform/utils/safe-provider";
import { OrganizationAuthRequestApiService } from "@bitwarden/bit-common/admin-console/auth-requests/organization-auth-request-api.service";
import { OrganizationAuthRequestService } from "@bitwarden/bit-common/admin-console/auth-requests/organization-auth-request.service";
import { PendingAuthRequestWithFingerprintView } from "@bitwarden/bit-common/admin-console/auth-requests/pending-auth-request-with-fingerprint.view";
import { PendingAuthRequestView } from "@bitwarden/bit-common/admin-console/auth-requests/pending-auth-request.view";
import { ApiService } from "@bitwarden/common/abstractions/api.service";
import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service";
@@ -44,7 +45,7 @@ import { SharedModule } from "@bitwarden/web-vault/app/shared/shared.module";
imports: [SharedModule, NoItemsModule, LooseComponentsModule],
})
export class DeviceApprovalsComponent implements OnInit, OnDestroy {
tableDataSource = new TableDataSource<PendingAuthRequestView>();
tableDataSource = new TableDataSource<PendingAuthRequestWithFingerprintView>();
organizationId: string;
loading = true;
actionInProgress = false;
@@ -73,7 +74,9 @@ export class DeviceApprovalsComponent implements OnInit, OnDestroy {
this.refresh$.pipe(
tap(() => (this.loading = true)),
switchMap(() =>
this.organizationAuthRequestService.listPendingRequests(this.organizationId),
this.organizationAuthRequestService.listPendingRequestsWithFingerprint(
this.organizationId,
),
),
),
),