I'm trying to create a credential with resident key / discoverable credentials for username-less login:
navigator.credentials.create({
publicKey: {
challenge: ...,
timeout: ...,
rp: { name: 'Some name' },
user: { ... },
pubKeyCredParams: [
{"type":"public-key","alg":-7},
{"type":"public-key","alg":-37},
{"type":"public-key","alg":-257}]
],
authenticatorSelection: {
authenticatorAttachment: 'cross-platform',
residentKey: 'required',
requireResidentKey: true,
userVerification: 'discouraged'
}
}
})
Unfortunately, Chrome still prompts the user to set a PIN or, if the hardware key does not support PINs, tells the user that the device is not supported. As if userVerification: 'discouraged'
was just ignored by Chrome.
Our requirement is that that users can register and login without entering a username or PIN (with all the implied safety drawbacks).
Is there a way to achieve this with Chrome?