You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
macOS: passkeys fail in webview panes without Apple's web-browser passkey entitlement #1906
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.
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.
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.
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.
Activity