Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passkeys: Wrap response to PublicKeyCredential #2178

Merged

Conversation

varjolintu
Copy link
Member

@varjolintu varjolintu commented Apr 22, 2024

Wraps the response to a proper PublicKeyCredential object. The object is passed as a normal object from the content script, and constructed at the injected script side. I had some strange problems when passing PublicKeyCredential object directly to the injected script, so this is the safest way to ensure compatibility.

Also fixes showing an error when credential is excluded, which is quite a common case. Even if we just let the lifetime timer run out, user should have some indication why the passkey creation fails.

I tested this with almost every site I have working passkeys. These changes didn't improve the situation with some problematic sites, e.g. Microsoft.

Supports extension JSON changes with keepassxreboot/keepassxc#10615.

Fixes #2173.

@varjolintu varjolintu force-pushed the fix/passkeys_wrap_response_to_publickeycredential branch from ce3bf51 to cc6d9cd Compare April 27, 2024 08:09
@varjolintu varjolintu added this to the 1.9.0.4 milestone Apr 27, 2024
@varjolintu varjolintu marked this pull request as ready for review April 27, 2024 08:12
@varjolintu varjolintu merged commit e1b7f4d into develop May 2, 2024
@varjolintu varjolintu deleted the fix/passkeys_wrap_response_to_publickeycredential branch May 2, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Passkey object is not of type PublicKeyCredential
2 participants