Skip to content

macOS: passkeys fail in webview panes without Apple's web-browser passkey entitlement #1906

Backlog

Description

@nedtwigg

On macOS, a site's passkey sign-in fails in a webview pane (dor webview). The page still sees PublicKeyCredential, so the site offers a passkey, then navigator.credentials.get() / create() fails.

Cause

WKWebView in a third-party app performs WebAuthn only for relying parties in the app's associated domains, unless the app holds Apple's managed entitlement com.apple.developer.web-browser.public-key-credential (macOS 13.3+). Dormouse holds neither. The main app is signed with no entitlements; standalone/src-tauri/entitlements-macos-node.plist is the sidecar's alone.

Plan

  1. Request the entitlement. Only the Account Holder of the organization's developer account may file it, at https://developer.apple.com/contact/request/macos-browsers-passkeys/. Apple reviews against fixed criteria:
    • the app's Info.plist names the http and https schemes (which would make Dormouse a default-browser candidate);
    • on launch the app offers a URL field, search, or bookmarks;
    • an http(s) URL navigates directly to its destination and renders it unchanged.
  2. Once granted, sign the main binary with it. This needs a Developer ID provisioning profile carrying the capability, embedded at Contents/embedded.provisionprofile before the outer app is signed. It also needs a release entitlements plist with com.apple.application-identifier (LXW8WAGWYX.sh.dormouse.standalone), com.apple.developer.team-identifier, and the passkey key, on the main executable only; the sidecar keeps its own. scripts/sign-and-deploy.sh and its test (which pins exactly one --entitlements) change with it. A restricted entitlement without a matching profile kills the app at launch, so dev and ad-hoc builds stay without it.
  3. Verify on a notarized build that WKWebView then serves passkeys with no extra code. Other projects report that it does not always work out of the box (a keychain access group, password prompts), so this is unconfirmed.

Until then

Sign in through the agent-browser renderer (real Chrome). Its profile is separate from the pane webview's, so the session does not carry over.

Prior art: cmux#1021, ilo#2354, herdr-app#2.

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions