Re: [webauthn] How can i use biometric sensor auth

Set the `userVerification` parameter to `"required"`. For registration it's located in [`PublicKeyCredentialCreationOptions`][make-root].[`authenticatorSelection`][make-param], and for authentication it's located in [`PublicKeyCredentialRequestOptions`][get-param].

This does not guarantee that a _biometric_ will be used, but it will require some kind of user verification, which could for example be PIN or biometric. If you specifically require biometric user verification, you can inspect the attestation certificate or use the [`uvm`][uvm] extension (although the latter will only work if the authenticator supports it).

[make-root]: https://w3c.github.io/webauthn/#dictdef-publickeycredentialcreationoptions
[make-param]: https://w3c.github.io/webauthn/#dictdef-authenticatorselectioncriteria
[get-param]: https://w3c.github.io/webauthn/#dictdef-publickeycredentialrequestoptions
[uvm]: https://w3c.github.io/webauthn/#sctn-uvm-extension

-- 
GitHub Notification of comment by emlun
Please view or discuss this issue at https://github.com/w3c/webauthn/issues/925#issuecomment-393454722 using your GitHub account

Received on Thursday, 31 May 2018 08:28:53 UTC