mirror of
https://github.com/bitwarden/browser
synced 2025-12-23 03:33:54 +00:00
[PM-1975] Move FIDO2 files into vault folder (#5496)
* Moved fido2 models to vault in libs * Moved fido2 models to vault in libs * Moved fido2 services and abstractions to vault folder in libs * Moved fido2 popup to vault folder on the browser * Updated import path after moving files to the vault folder * Moved authenticator abstraction and service to the vault folder * Updated content and page script path * Added content script, page script and background messaging to vault * fixed lint issue * Updated reference paths * Added missing fallbacksupported property in test files * Added missing fallbacksupported to the newSession method
This commit is contained in:
33
libs/common/src/vault/models/data/fido2-key.data.ts
Normal file
33
libs/common/src/vault/models/data/fido2-key.data.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
import { Fido2KeyApi } from "../../api/fido2-key.api";
|
||||
|
||||
export class Fido2KeyData {
|
||||
nonDiscoverableId: string;
|
||||
keyType: "public-key";
|
||||
keyAlgorithm: "ECDSA";
|
||||
keyCurve: "P-256";
|
||||
keyValue: string;
|
||||
rpId: string;
|
||||
userHandle: string;
|
||||
counter: string;
|
||||
|
||||
// Extras
|
||||
rpName: string;
|
||||
userName: string;
|
||||
|
||||
constructor(data?: Fido2KeyApi) {
|
||||
if (data == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.nonDiscoverableId = data.nonDiscoverableId;
|
||||
this.keyType = data.keyType;
|
||||
this.keyAlgorithm = data.keyAlgorithm;
|
||||
this.keyCurve = data.keyCurve;
|
||||
this.keyValue = data.keyValue;
|
||||
this.rpId = data.rpId;
|
||||
this.userHandle = data.userHandle;
|
||||
this.counter = data.counter;
|
||||
this.rpName = data.rpName;
|
||||
this.userName = data.userName;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user