WebAuthN 是否可以查看可用的平台身份验证器? [英] WebAuthN Is it possible to see the available platform authenticators?

查看:45
本文介绍了WebAuthN 是否可以查看可用的平台身份验证器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的任务是为 webauthn 创建自定义注册屏幕.我们希望向用户展示 faceid 将用于对他们进行身份验证,或者他们的指纹将用于验证.

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.

拥有设备表并从中衍生的解决方案似乎是可持续发展的噩梦.我更愿意从 navigator.credentials.authenticator.getDevice() 之类的东西中提取

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()

推荐答案

最接近的是: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.

注册后,您可以使用 FIDO2 MDS(元数据服务)检索有关该设备的信息,包括显示名称和图标.不过,Apple AAGUID 可能还需要一段时间才能出现在 MDS 中.

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.

这篇关于WebAuthN 是否可以查看可用的平台身份验证器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆