Replies: 7 comments
-
Hello @rico, Thank you for starting this discussion. As mentioned, browsers and platforms do not necessarily support passkeys/discoverable credentials.
|
Beta Was this translation helpful? Give feedback.
-
Hi @Spomky - thank you very much for the response. I tried a few things discussed in the linked issues. It didn't help. But once I reset my code and tried again, it worked. I don't have an idea what happened, but suspect an issue with the frontend library (SimpleWebAuthn). Thanks again for your support. |
Beta Was this translation helpful? Give feedback.
-
Hi @rico, Many thank for your support. I really appreciate. const resp = await fetch('/generate-authentication-options', {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: {username: "john.doe"}
}); The response options will contain the user handle and will be passed to |
Beta Was this translation helpful? Give feedback.
-
Hi @Spomky you are very welcome and I am the one to thank!
Sorry, but I couldn't find that part in the documentation. Can you post a link to the where I can find it? And what do you mean with not complete - a mistake on my side? If this is the step where I get the I am basically following the implementation here: https://blog.joe.codes/implementing-passkey-authentication-in-your-laravel-app. Just using Vue instead of Alpine.js. |
Beta Was this translation helpful? Give feedback.
-
Excellent! I was not aware of this Laravel implementation. That's a good news for the Laravel community. There are 3 reasons for this exception to be thrown:
You mentioned you used passkeys and |
Beta Was this translation helpful? Give feedback.
-
Yes it is! According to a tweet, the author is also thinking about making a package out of it.
Definitely.
I tracked this back to PublicKeyCredentialLoader:139. I guess this is value should be set in the browser? The thing with this issue is, that sometimes it works, and then it doesn't - same code and browser. Any suggestions what I can check? I even compared the responses for Safari (where it always works) and Chrome, but can't find any major differences ... |
Beta Was this translation helpful? Give feedback.
-
I gave it another try today - could still not figure it out. As a workaround, I am storing the user handle ( |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I suddenly have a problem with some my sites, where
AuthenticatorAssertionResponseValidator->check
fails with the exception messageInvalid user handle
.$credentialUserHandle
contains the correct user id, but$responseUserHandle
(AuthenticatorAssertionResponse->getUserHandle
) is always null.Interestingly, if I use Safari instead of Chrome, the problem does not exist.
I already reset the passkey in the browser and deleted the authenticators in the DB to start over - without success. What could lead to such a problem?
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions