Skip to content

Passkeys: Wrap response to PublicKeyCredential#2178

Merged
varjolintu merged 1 commit intodevelopfrom
fix/passkeys_wrap_response_to_publickeycredential
May 2, 2024
Merged

Passkeys: Wrap response to PublicKeyCredential#2178
varjolintu merged 1 commit intodevelopfrom
fix/passkeys_wrap_response_to_publickeycredential

Conversation

@varjolintu
Copy link
Copy Markdown
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 requested a review from droidmonkey 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