Repository navigation
Passkeys in environment-hosted (server) browser tabs #23331
Replies: 4 comments
|
One option for credentials that live on the host rather than the viewing device, like a password manager's stored passkeys: Chrome's DevTools
Request for #17762: please keep the fallback where pages use Chromium's own WebAuthn when no passkey-capable viewer holds control, so an authenticator added through CDP keeps working. |
|
An idea offered by GPT 6.1 Sol Xhigh: I hit this on Windows with a WSL environment ( For these checks, the key was attached to WSL through There is existing Windows code to investigate: T3’s desktop app depends on
For existing-key sign-in, I propose this API: export function prepareWindowsAssertion(
windowHandle: Buffer,
optionsJson: string,
origin: string,
): {
get(): Promise<string>;
cancel(): void;
};The Windows client would trust the connected T3 environment for the committed page origin, then check that the RP ID belongs to that origin before signing. The implementation also needs WebAuthn’s prescribed client-data serialization, bounded cancellation handling, and one native operation at a time until it finishes. For this approach, the YubiKey would remain attached to Windows while the browser and login session remain in WSL. It needs a rebuilt Windows addon and T3’s request forwarding. I haven’t tested a working Windows forwarding implementation. |
|
Correction: this reproduction belongs with #14398, not here. I misidentified the browser. These agent-opened tabs, including a hidden incognito tab the desktop never displayed, are drawn by the desktop's Electron webview, not the server's headless shell:
I've moved the corrected reproduction to #14398. Sorry for the noise. |
|
I'd like to add a user-facing requirement to this proposal: support passkey prompts throughout in-app browser sign-in, including when the site opens a separate authentication popup. My use case is to open a site in T3 Code, complete the sign-in myself, and let the agent continue working in that authenticated tab. I'd like to avoid leaving the in-app browser whenever a site asks for a passkey or opens a sign-in window. For the initial scope:
The agent should wait while I complete authentication. It shouldn't approve prompts on my behalf. I understand this discussion concerns environment-hosted tabs. The desktop counterpart is also relevant to my request: #14398 covers phone/QR passkeys, and the closed, unmerged #16370 lists sign-in popups as a gap. I'm adding this here as a feature suggestion so maintainers can decide the supported scope. |
Uh oh!
There was an error while loading. Please reload this page.
Follow-up to #16370 (passkeys in desktop browser tabs on macOS).
Problem. Tabs the environment server hosts in its own headless browser, which remote servers, the web app, and mobile all use, have no way to complete a WebAuthn ceremony. A page that calls
navigator.credentials.getorcreatethere never reaches an authenticator. The headless shell has no UI, and the user's authenticator is on the client (Touch ID, iCloud Keychain, a phone, a security key), not on the server.Direction. Bridge the ceremony to the viewing client, like the desktop bridge in #16370, but across the network:
navigator.credentials.*(CDPWebAuthndomain or an init script), and send the request with the page's committed origin, taken from the server, never the page, to the client that controls the tab.Scope. Desktop macOS first, since it reuses #16370's AuthenticationServices path once Apple grants
com.apple.developer.web-browser.public-key-credential. Then mobile. The plain web client is likely not possible.Related: #14398 (phone / QR passkeys), #5665.
All reactions