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
Do not get Illegal Invocation error on calling getPublicKey and getPublicKeyAlgorithm methods or override them instead of inheriting from prototype
Current Behavior
If you trying to call getPublicKey or getPublicKeyAlgorithm methods from AuthenticatorAttestationResponse of KeepassXC app you will get Illegal invocation due to inheritance those functions via AuthenticatorAttestationResponse prototype
why would those function stubs be called in the first place?
Because there is no other way to verify from user code should or not you call those functions (if you trying to check response from debugger they appears as callable functions)
getPublicKey() This operation returns the DER SubjectPublicKeyInfo of the new credential, or null if this is not available. See § 5.2.1.1 Easily accessing credential data.
Expected Behavior
Do not get Illegal Invocation error on calling getPublicKey and getPublicKeyAlgorithm methods or override them instead of inheriting from prototype
Current Behavior
If you trying to call getPublicKey or getPublicKeyAlgorithm methods from AuthenticatorAttestationResponse of KeepassXC app you will get Illegal invocation due to inheritance those functions via AuthenticatorAttestationResponse prototype
Possible Solution
Fix createAttestationResponse in passkeys.js as:
this solution proposed via #2323 PR
Steps to Reproduce (for bugs)
publicKey.response.getPublicKey
orpublicKey.response.getPublicKeyAlgorithm
in userside JS codeDebug info
KeePassXC - 2.7.9
KeePassXC-Browser - 1.9.2
Operating system: Linux
Browser: Chromium
The text was updated successfully, but these errors were encountered: