Laragear / WebAuthn

Authenticate users with Passkeys: fingerprints, patterns and biometric data.
MIT License
305 stars 37 forks source link

[1.x] Fails to register yubikey (or platform authenticator) when using @simplewebauthn/browser #63

Closed matthijs closed 8 months ago

matthijs commented 9 months ago

PHP & Platform

8.1 (Debian - Bookworm)

Database

PostgreSQL 15

Laravel version

10.40.0

Have you done this?

Expectation

When I am trying to register a yubikey, I expect it to be registered with my account.

Description

Impossible to register my yubikey (or any platform authenticator, in my case Touch ID).

I guess that the javascript used in @simplewebauthn/browser is a bit different which causes this issue.

Reproduction

I've used the following example https://github.com/MasterKale/SimpleWebAuthn/blob/master/example/public/index.html

Adjusted the urls and tried to register a yubikey and tried to register Touch ID.

Stack trace & logs

When trying to register I get the following validation error:

ByteBuffer: Invalid offset or length.
DarkGhostHunter commented 9 months ago

Going to leave this open when I come back for WebAuthn.

DarkGhostHunter commented 8 months ago

Cannot reproduce, no stacktrace.