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

Error registering key using 1Password #50

Closed
Carlgo11 opened this issue Apr 23, 2024 · 3 comments
Closed

Error registering key using 1Password #50

Carlgo11 opened this issue Apr 23, 2024 · 3 comments

Comments

@Carlgo11
Copy link

Hello,
There seems to be something odd happening when trying to register using 1Password Passkeys.
I see that a similar issue was reported in #37, but according to 1Password support, getPublicKey has been implemented since the 1Password browser extension version 2.16.1-2 stable.
The error message in #37 also differs from mine:

Error: Permission denied to access object
    E utils.ts:15
    o utils.ts:24
    v client.ts:119
    register playground.js:50
    VueJS 4
        click
        dn
        r
        _wrapper
playground.js:66:25

I have tested on both my page using @passwordless-id/webauthn and on the playground demo.

Any idea on what could be wrong and if the bug is with 1Password or this project?

@Carlgo11 Carlgo11 changed the title 1Password Error registering key using 1Password Apr 23, 2024
@dagnelies
Copy link
Collaborator

dagnelies commented Apr 23, 2024

Well, since it works on all major browsers and not with 1Password, I guess the issue on their side. I guess the issue is with the getPublicKey() function not being properly implemented on their side. If you enable the debug flag, the raw original webauthn object should be printed in the browser console.
image
Then try invoking temp1.response.getPublicKey() to see if you get something meaningful.

@Carlgo11
Copy link
Author

temp0.response.getPublicKey()
Restricted {  }
temp0.response.getPublicKeyAlgorithm()
-7 

Looking at the the code doesn't give me any clues as to why it would output this, but I guess I'll reach out to 1Password Support about my issue.

@dagnelies
Copy link
Collaborator

You're welcome to reopen this if there is something new since apparently the issue is with 1Password and its incomplete protocol implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants