mirror of
https://github.com/bitwarden/browser
synced 2026-03-02 03:21:19 +00:00
* 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
29 lines
1.1 KiB
TypeScript
29 lines
1.1 KiB
TypeScript
import { PendingAuthRequestWithFingerprintView } from "@bitwarden/bit-common/admin-console/auth-requests/pending-auth-request-with-fingerprint.view";
|
|
import { BaseResponse } from "@bitwarden/cli/models/response/base.response";
|
|
|
|
export class PendingAuthRequestResponse implements BaseResponse {
|
|
object = "auth-request";
|
|
|
|
id: string;
|
|
userId: string;
|
|
organizationUserId: string;
|
|
email: string;
|
|
requestDeviceIdentifier: string;
|
|
requestDeviceType: string;
|
|
requestIpAddress: string;
|
|
creationDate: Date;
|
|
fingerprintPhrase: string;
|
|
|
|
constructor(authRequest: PendingAuthRequestWithFingerprintView) {
|
|
this.id = authRequest.id;
|
|
this.userId = authRequest.userId;
|
|
this.organizationUserId = authRequest.organizationUserId;
|
|
this.email = authRequest.email;
|
|
this.requestDeviceIdentifier = authRequest.requestDeviceIdentifier;
|
|
this.requestDeviceType = authRequest.requestDeviceType;
|
|
this.requestIpAddress = authRequest.requestIpAddress;
|
|
this.creationDate = authRequest.creationDate;
|
|
this.fingerprintPhrase = authRequest.fingerprintPhrase;
|
|
}
|
|
}
|