Stay organized with collections Save and categorize content based on your preferences.
DescriptionThe chrome.webAuthenticationProxy
API lets remote desktop software running on a remote host intercept Web Authentication API (WebAuthn) requests in order to handle them on a local client.
webAuthenticationProxy
requestDetailsJson
string
The PublicKeyCredentialCreationOptions
passed to navigator.credentials.create()
, serialized as a JSON string. The serialization format is compatible with PublicKeyCredential.parseCreationOptionsFromJSON()
.
An opaque identifier for the request.
The DOMException
yielded by the remote request, if any.
The requestId
of the CreateRequest
.
responseJson
string optional
The PublicKeyCredential
, yielded by the remote request, if any, serialized as a JSON string by calling href="https://w3c.github.io/webauthn/#dom-publickeycredential-tojson"> PublicKeyCredential.toJSON()
.
requestDetailsJson
string
The PublicKeyCredentialRequestOptions
passed to navigator.credentials.get()
, serialized as a JSON string. The serialization format is compatible with PublicKeyCredential.parseRequestOptionsFromJSON()
.
An opaque identifier for the request.
The DOMException
yielded by the remote request, if any.
The requestId
of the CreateRequest
.
responseJson
string optional
The PublicKeyCredential
, yielded by the remote request, if any, serialized as a JSON string by calling href="https://w3c.github.io/webauthn/#dom-publickeycredential-tojson"> PublicKeyCredential.toJSON()
.
An opaque identifier for the request.
chrome.webAuthenticationProxy.attach(): Promise<string | undefined>
Makes this extension the active Web Authentication API request proxy.
Remote desktop extensions typically call this method after detecting attachment of a remote session to this host. Once this method returns without error, regular processing of WebAuthn requests is suspended, and events from this extension API are raised.
This method fails with an error if a different extension is already attached.
The attached extension must call detach()
once the remote desktop session has ended in order to resume regular WebAuthn request processing. Extensions automatically become detached if they are unloaded.
Refer to the onRemoteSessionStateChange
event for signaling a change of remote session attachment from a native application to to the (possibly suspended) extension.
Promise<string | undefined>
chrome.webAuthenticationProxy.completeCreateRequest(
details: CreateResponseDetails,
): Promise<void>
Reports the result of a navigator.credentials.create()
call. The extension must call this for every onCreateRequest
event it has received, unless the request was canceled (in which case, an onRequestCanceled
event is fired).
chrome.webAuthenticationProxy.completeGetRequest(
details: GetResponseDetails,
): Promise<void>
Reports the result of a navigator.credentials.get()
call. The extension must call this for every onGetRequest
event it has received, unless the request was canceled (in which case, an onRequestCanceled
event is fired).
chrome.webAuthenticationProxy.completeIsUvpaaRequest(
details: IsUvpaaResponseDetails,
): Promise<void>
Reports the result of a PublicKeyCredential.isUserVerifyingPlatformAuthenticator()
call. The extension must call this for every onIsUvpaaRequest
event it has received.
chrome.webAuthenticationProxy.detach(): Promise<string | undefined>
Removes this extension from being the active Web Authentication API request proxy.
This method is typically called when the extension detects that a remote desktop session was terminated. Once this method returns, the extension ceases to be the active Web Authentication API request proxy.
Refer to the onRemoteSessionStateChange
event for signaling a change of remote session attachment from a native application to to the (possibly suspended) extension.
Promise<string | undefined>
chrome.webAuthenticationProxy.onCreateRequest.addListener(
callback: function,
)
Fires when a WebAuthn navigator.credentials.create()
call occurs. The extension must supply a response by calling completeCreateRequest()
with the requestId
from requestInfo
.
The callback
parameter looks like:
(requestInfo: CreateRequest) => void
chrome.webAuthenticationProxy.onGetRequest.addListener(
callback: function,
)
Fires when a WebAuthn navigator.credentials.get() call occurs. The extension must supply a response by calling completeGetRequest()
with the requestId
from requestInfo
The callback
parameter looks like:
(requestInfo: GetRequest) => void
chrome.webAuthenticationProxy.onIsUvpaaRequest.addListener(
callback: function,
)
Fires when a PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()
call occurs. The extension must supply a response by calling completeIsUvpaaRequest()
with the requestId
from requestInfo
The callback
parameter looks like:
(requestInfo: IsUvpaaRequest) => void
chrome.webAuthenticationProxy.onRemoteSessionStateChange.addListener(
callback: function,
)
A native application associated with this extension can cause this event to be fired by writing to a file with a name equal to the extension's ID in a directory named WebAuthenticationProxyRemoteSessionStateChange
inside the default user data directory
The contents of the file should be empty. I.e., it is not necessary to change the contents of the file in order to trigger this event.
The native host application may use this event mechanism to signal a possible remote session state change (i.e. from detached to attached, or vice versa) while the extension service worker is possibly suspended. In the handler for this event, the extension can call the attach()
or detach()
API methods accordingly.
The event listener must be registered synchronously at load time.
ParametersThe callback
parameter looks like:
() => void
chrome.webAuthenticationProxy.onRequestCanceled.addListener(
callback: function,
)
Fires when a onCreateRequest
or onGetRequest
event is canceled (because the WebAuthn request was aborted by the caller, or because it timed out). When receiving this event, the extension should cancel processing of the corresponding request on the client side. Extensions cannot complete a request once it has been canceled.
The callback
parameter looks like:
(requestId: number) => void
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-11 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4