我了解如何使用iOS指纹认证机制,但是对于在何处以及如何存储用户凭据感到怀疑。指纹通过身份验证后,我需要将用户详细信息发送到服务器。由于用户没有在任何地方键入它,因此我假设我将在用户第一次键入它时将其存储。我在哪里安全地存储这些凭据? iOS KeyChain是此解决方案吗?
最佳答案
这是我为我的应用实现触摸ID的方式。
1. check if fingerprint is enabled : user credentials is stored in keychain
2. if fingerprint is enabled, prompt for fingerprint touch
3. else show login screen
4. if user checks "enable fingerprint" checkbox and logs in, store username and password in keychain
5. else login as normal
我使用了以下插件:
https://github.com/sjhoeksma/cordova-plugin-keychain-touch-id
关于ios - Cordova iOS指纹认证:将用户凭据发送到服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45975383/