mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
[EC-598] chore: continue rename webauthn to fido2
This commit is contained in:
@@ -89,11 +89,11 @@ import { CipherFileUploadService } from "@bitwarden/common/vault/services/file-u
|
||||
import { FolderApiService } from "@bitwarden/common/vault/services/folder/folder-api.service";
|
||||
import { SyncNotifierService } from "@bitwarden/common/vault/services/sync/sync-notifier.service";
|
||||
import { SyncService } from "@bitwarden/common/vault/services/sync/sync.service";
|
||||
import { Fido2AuthenticatorService as Fido2AuthenticatorServiceAbstraction } from "@bitwarden/common/webauthn/abstractions/fido2-authenticator.service.abstraction";
|
||||
import { Fido2ClientService as Fido2ClientServiceAbstraction } from "@bitwarden/common/webauthn/abstractions/fido2-client.service.abstraction";
|
||||
import { Fido2UserInterfaceService as Fido2UserInterfaceServiceAbstraction } from "@bitwarden/common/webauthn/abstractions/fido2-user-interface.service.abstraction";
|
||||
import { Fido2AuthenticatorService } from "@bitwarden/common/webauthn/services/fido2-authenticator.service";
|
||||
import { Fido2ClientService } from "@bitwarden/common/webauthn/services/fido2-client.service";
|
||||
import { Fido2AuthenticatorService as Fido2AuthenticatorServiceAbstraction } from "@bitwarden/common/fido2/abstractions/fido2-authenticator.service.abstraction";
|
||||
import { Fido2ClientService as Fido2ClientServiceAbstraction } from "@bitwarden/common/fido2/abstractions/fido2-client.service.abstraction";
|
||||
import { Fido2UserInterfaceService as Fido2UserInterfaceServiceAbstraction } from "@bitwarden/common/fido2/abstractions/fido2-user-interface.service.abstraction";
|
||||
import { Fido2AuthenticatorService } from "@bitwarden/common/fido2/services/fido2-authenticator.service";
|
||||
import { Fido2ClientService } from "@bitwarden/common/fido2/services/fido2-client.service";
|
||||
|
||||
import { BrowserOrganizationService } from "../admin-console/services/browser-organization.service";
|
||||
import { BrowserPolicyService } from "../admin-console/services/browser-policy.service";
|
||||
|
||||
@@ -3,8 +3,8 @@ import {
|
||||
CreateCredentialResult,
|
||||
AssertCredentialParams,
|
||||
AssertCredentialResult,
|
||||
} from "@bitwarden/common/webauthn/abstractions/fido2-client.service.abstraction";
|
||||
import { Fido2Utils } from "@bitwarden/common/webauthn/abstractions/fido2-utils";
|
||||
} from "@bitwarden/common/fido2/abstractions/fido2-client.service.abstraction";
|
||||
import { Fido2Utils } from "@bitwarden/common/fido2/abstractions/fido2-utils";
|
||||
|
||||
class BitAuthenticatorAttestationResponse implements AuthenticatorAttestationResponse {
|
||||
clientDataJSON: ArrayBuffer;
|
||||
|
||||
@@ -2,7 +2,7 @@ import { Message, MessageType } from "./messaging/message";
|
||||
import { Messenger } from "./messaging/messenger";
|
||||
|
||||
const s = document.createElement("script");
|
||||
s.src = chrome.runtime.getURL("content/webauthn/page-script.js");
|
||||
s.src = chrome.runtime.getURL("content/fido2/page-script.js");
|
||||
(document.head || document.documentElement).appendChild(s);
|
||||
|
||||
const messenger = Messenger.forDOMCommunication(window);
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
CreateCredentialResult,
|
||||
AssertCredentialParams,
|
||||
AssertCredentialResult,
|
||||
} from "@bitwarden/common/webauthn/abstractions/fido2-client.service.abstraction";
|
||||
} from "@bitwarden/common/fido2/abstractions/fido2-client.service.abstraction";
|
||||
|
||||
export enum MessageType {
|
||||
CredentialCreationRequest,
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service";
|
||||
import { CipherType } from "@bitwarden/common/vault/enums/cipher-type";
|
||||
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
||||
import { Fido2KeyView } from "@bitwarden/common/webauthn/models/view/fido2-key.view";
|
||||
import { Fido2KeyView } from "@bitwarden/common/fido2/models/view/fido2-key.view";
|
||||
|
||||
import { BrowserApi } from "../../../browser/browserApi";
|
||||
import {
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
"content/autofiller.js",
|
||||
"content/notificationBar.js",
|
||||
"content/contextMenuHandler.js",
|
||||
"content/webauthn/content-script.js"
|
||||
"content/fido2/content-script.js"
|
||||
],
|
||||
"matches": ["http://*/*", "https://*/*", "file:///*"],
|
||||
"run_at": "document_start"
|
||||
@@ -99,7 +99,7 @@
|
||||
}
|
||||
},
|
||||
"web_accessible_resources": [
|
||||
"content/webauthn/page-script.js",
|
||||
"content/fido2/page-script.js",
|
||||
"notification/bar.html",
|
||||
"images/icon38.png",
|
||||
"images/icon38_locked.png"
|
||||
|
||||
@@ -11,12 +11,12 @@ import {
|
||||
} from "rxjs";
|
||||
|
||||
import { Utils } from "@bitwarden/common/misc/utils";
|
||||
import { UserRequestedFallbackAbortReason } from "@bitwarden/common/webauthn/abstractions/fido2-client.service.abstraction";
|
||||
import { UserRequestedFallbackAbortReason } from "@bitwarden/common/fido2/abstractions/fido2-client.service.abstraction";
|
||||
import {
|
||||
Fido2UserInterfaceService as Fido2UserInterfaceServiceAbstraction,
|
||||
Fido2UserInterfaceSession,
|
||||
NewCredentialParams,
|
||||
} from "@bitwarden/common/webauthn/abstractions/fido2-user-interface.service.abstraction";
|
||||
} from "@bitwarden/common/fido2/abstractions/fido2-user-interface.service.abstraction";
|
||||
|
||||
import { BrowserApi } from "../../browser/browserApi";
|
||||
import { PopupUtilsService } from "../../popup/services/popup-utils.service";
|
||||
|
||||
@@ -146,8 +146,8 @@ const mainConfig = {
|
||||
"content/notificationBar": "./src/autofill/content/notification-bar.ts",
|
||||
"content/contextMenuHandler": "./src/autofill/content/context-menu-handler.ts",
|
||||
"content/message_handler": "./src/autofill/content/message_handler.ts",
|
||||
"content/webauthn/content-script": "./src/webauthn/content/content-script.ts",
|
||||
"content/webauthn/page-script": "./src/webauthn/content/page-script.ts",
|
||||
"content/fido2/content-script": "./src/fido2/content/content-script.ts",
|
||||
"content/fido2/page-script": "./src/fido2/content/page-script.ts",
|
||||
"notification/bar": "./src/autofill/notification/bar.ts",
|
||||
"encrypt-worker": "../../libs/common/src/services/cryptography/encrypt.worker.ts",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user