Replies: 2 comments 1 reply
-
|
Hi, This is a really strange behavior. I have several YubiKeys and have never encountered this issue. My assumption is that this is most likely a storage or update-flow issue. |
Beta Was this translation helpful? Give feedback.
-
|
I don't know what happened, but I can register my Yubikey now. packages information:web-auth/webauthn-lib: 5.2.3 Register code:try {
$publicKeyCredential = $serializer->fromJson($data['passkey'], PublicKeyCredential::class);
if (! $publicKeyCredential->response instanceof AuthenticatorAttestationResponse) {
$this->dispatch('toast', status: 'danger', message: 'Invalid passkey');
return;
}
$options = Session::get('passkey-registration-options');
if (! $options) {
$this->dispatch('toast', status: 'danger', message: 'Invalid passkey');
return;
}
$publicKeyCredentialCreationOptions = $serializer->fromJson($options,
PublicKeyCredentialCreationOptions::class);
$csmFactory = new CeremonyStepManagerFactory();
$creationCSM = $csmFactory->creationCeremony();
$publicKeyCredentialSource = AuthenticatorAttestationResponseValidator::create($creationCSM)
->check(
authenticatorAttestationResponse: $publicKeyCredential->response,
publicKeyCredentialCreationOptions: $publicKeyCredentialCreationOptions,
host: request()->getHost()
);
} catch (Throwable) {
$this->dispatch('toast', status: 'danger', message: 'Invalid passkey');
return;
}
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
First, I want to thank this project, I use this project to implement the passkey login in my blog repo.
But I have a question, I find that default counter check won't accept my YubiKey as an authenticator.
I have to create a custom counter check and update the check rule. The default rule is...
I find in YubiKey, current counter will always equal to credential source counter, if I want to use YubiKey as an authenticator, I must change the rule to...
But I think this might break the purpose of counter check, I'm really confusing about the mechanism behind it.
Is there anyone can tell me I was wrong in something?
Beta Was this translation helpful? Give feedback.
All reactions