简体   繁体   English

Android Biometrics 指纹扫描仪用于用户搜索

[英]Android Biomectrics fingerprint scanner for user search

currently i am looking to see if i can use in android the fingerprint scanner to find user's.目前我正在寻找是否可以在 android 中使用指纹扫描仪来查找用户的。

for example using android firebase to authenticate users, then by using the fingerprint to search for the specific users that will show their information.例如使用 android firebase 对用户进行身份验证,然后使用指纹搜索将显示其信息的特定用户。

is there a way to do this?有没有办法做到这一点? because last time i checked, the information is stored locally on the android device, thus i am a bit lacking into if its possible to do so or not.因为上次我检查,信息本地存储在 android 设备上,因此我有点缺乏是否可以这样做。

currently looking for a way to do authentication using biometric's inside my app using firebase so that i can only have a single user without multiple accounts, using biometrics to lock the user into 1 account, to check either if the user already has an account using biometrics, and then searching results using bio metrics.目前正在寻找一种在我的应用程序中使用 firebase 进行身份验证的方法,这样我就只能有一个没有多个帐户的用户,使用生物识别技术将用户锁定到一个帐户,以检查用户是否已经有一个使用生物识别技术的帐户,然后使用生物指标搜索结果。

If I understand you correctly you want to sign the user into Firebase using their Android Biometric Prompt.如果我对您的理解正确,您希望使用他们的 Android 生物识别提示将用户登录到 Firebase。

I've quickly looked at the API for Biometric Prompt , and it seems an authentication user is identified by an AuthenticationResult which in turn contains a CryptoObject .我很快查看了API 的 Biometric Prompt ,似乎身份验证用户由AuthenticationResult标识,而 AuthenticationResult 又包含CryptoObject That last object contains the cipher, signature and mac for the sign-in, which you can use to verify that it was performed by a trusted source.最后一个 object 包含用于登录的密码、签名和 mac,您可以使用它们来验证它是否由受信任的来源执行。

You could send all this information over to a trusted environment (such as your development machine, a server you control, or Cloud Functions), verify it there, and then use that to mint a custom token for the user.您可以将所有这些信息发送到受信任的环境(例如您的开发机器、您控制的服务器或 Cloud Functions),在那里进行验证,然后使用它为用户生成自定义令牌

The main problem (aside from the fact there is likely no sample code) I see is that there is no information about the user that is available after the Biometric Prompt.我看到的主要问题(除了可能没有示例代码之外)是在生物识别提示之后没有可用的用户信息。 So you know they are the real user of that phone, but nothing else about them.所以你知道他们是那部手机的真正用户,但对他们一无所知。 This is not uncommon in Firebase, as it is similar to the lack of information that the built-in anonymous authentication provider has, but you'll have to see if it's enough for your use-case.这在 Firebase 中并不少见,因为它类似于内置匿名身份验证提供程序所缺少的信息,但您必须查看它是否足以满足您的用例。

In addition to the links I embedded above, also see:除了我上面嵌入的链接外,另请参阅:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM