简体   繁体   English

使用 Firebase 进行指纹身份验证

[英]FingerPrint authentication with Firebase

I want to develop an app that uses fingerprint authentication with firebase (Android and IOS) what I want is the authentication to take place on the firebase Database not on the phone it self(so the user's fingerprint Id must be stored in firebase) is there anyway to do it ?我想开发一个使用 firebase(Android 和 IOS)指纹身份验证的应用程序,我想要的是在 firebase 数据库上进行身份验证,而不是在它自己的手机上(因此用户的指纹 ID 必须存储在 firebase 中)在那里反正要做吗? the fingerprint scanner does generate a unique ID for scanned fingers ?if yes can you provide me with Java code to it?指纹扫描仪确实为扫描的手指生成了一个唯一的 ID?如果是,你能给我提供它的 Java 代码吗? Thank you谢谢

the fingerprint image nor its features are accessible by the API. API 可以访问指纹图像及其功能。 From android website:从安卓网站:

Thus, raw images and processed fingerprint features must not be passed in untrusted memory.因此,原始图像和处理后的指纹特征不得在不受信任的内存中传递。 All such biometric data needs to be secured within sensor hardware or trusted memory.所有此类生物识别数据都需要在传感器硬件或受信任的内存中进行保护。 (Memory inside the TEE is considered as trusted memory; memory outside the TEE is considered untrusted.) (TEE 内的内存被认为是可信内存;TEE 外的内存被认为是不可信的。)

The Web Authentication API (also known as WebAuthn) is a new web specification written by the W3C in 2019. Web Authentication API(也称为 WebAuthn)是 W3C 于 2019 年编写的新 Web 规范。

https://webauthn.guide/ https://webauthn.guide/

It allows for passwordless authentication using biometrics (FaceID, fingerprints, Windows Hello, etc).它允许使用生物识别技术(FaceID、指纹、Windows Hello 等)进行无密码身份验证。

It is probably not a perfect solution for you as it does not necessarily fit into a Firebase world exactly, but with some custom backend code you can probably get it to work.这对您来说可能不是一个完美的解决方案,因为它不一定完全适合 Firebase 世界,但是通过一些自定义后端代码,您可能可以让它工作。

  • Fingerprint data of any kind must not be backed up to any other source, including the cloud or your computer or any application不得将任何类型的指纹数据备份到任何其他来源,包括云或您的计算机或任何应用程序
  • Fingerprint authentication must be used by the process that requested it ( no sharing of any fingerprint data, even just the yes or no answer to see if it was correct )指纹验证必须由请求它的进程使用(不共享任何指纹数据,即使只是回答是或否以查看它是否正确

TEE stands for Trusted Execution Environment TEE 代表可信执行环境

Source: Android Central ( https://www.androidcentral.com/how-does-android-save-your-fingerprints )来源:Android Central( https://www.androidcentral.com/how-does-android-save-your-fingerprints

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

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