mirror of
https://github.com/bitwarden/browser
synced 2025-12-21 02:33:46 +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:
@@ -1,10 +1,10 @@
|
||||
import { Fido2KeyData } from "../../../fido2/models/data/fido2-key.data";
|
||||
import { CipherRepromptType } from "../../enums/cipher-reprompt-type";
|
||||
import { CipherType } from "../../enums/cipher-type";
|
||||
import { CipherResponse } from "../response/cipher.response";
|
||||
|
||||
import { AttachmentData } from "./attachment.data";
|
||||
import { CardData } from "./card.data";
|
||||
import { Fido2KeyData } from "./fido2-key.data";
|
||||
import { FieldData } from "./field.data";
|
||||
import { IdentityData } from "./identity.data";
|
||||
import { LoginData } from "./login.data";
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Fido2KeyData } from "../../../fido2/models/data/fido2-key.data";
|
||||
import { LoginApi } from "../../../models/api/login.api";
|
||||
|
||||
import { Fido2KeyData } from "./fido2-key.data";
|
||||
import { LoginUriData } from "./login-uri.data";
|
||||
|
||||
export class LoginData {
|
||||
|
||||
Reference in New Issue
Block a user