WebAuthN Is it possible to see the available platform authenticators?

前提是你 提交于 2020-12-15 03:41:52

问题


I was tasked with creating a custom enrollment screen for webauthn. We want to show the user that faceid will be used to authenticate them, or that their fingerprint will.

The solution of having a device table and deriving from that seems like a sustainability nightmare. I would much rather pull from something like navigator.credentials.authenticator.getDevice()


回答1:


The closest you're going to get is: https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable

You may also be able to infer what's available if you can get the OS version and device model somehow.

After enrollment you can use the FIDO2 MDS (metadata service) to retrieve information about that device, including the display name and icon. It may be some time before Apple AAGUIDs appear in the MDS though.



来源:https://stackoverflow.com/questions/63492633/webauthn-is-it-possible-to-see-the-available-platform-authenticators

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!