Just started to play around yubikey, my question is based on the following assumptions:
- Passwordless doesn't need to know the username based on the following demo
- Based on this doc the
allowedCredentials
can be omitted
I registered the yubikey by using the django package django-fido
I am having problem using navigator.credentials.get(publicKey)
to get the credential from yubikey, the publicKey parameter I am passing in as below:
{challenge: Uint8Array(32), rpId: 'localhost'}
It says the yubikey is not registered with this website, but I am pretty sure I did because if I don't use the passwordless approach, by specifying the allowedCredentials, I can find the key:
{challenge: Uint8Array(32), rpId: 'localhost', allowCredentials: Array(1)}