Cordova iOS FingerPrint身份验证:将用户凭据发送到服务器

问题描述 投票:1回答:1

我理解如何使用iOS指纹身份验证机制,但我怀疑在何处以及如何存储用户凭据。指纹通过身份验证后,我需要将用户详细信息发送到服务器。由于用户没有在任何地方输入它,我假设我必须在用户第一次输入时存储它。我在哪里安全地存储这些凭据? iOS KeyChain是解决方案吗?

ios cordova authentication touch-id
1个回答
0
投票

这是我为我的应用程序实现触摸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

© www.soinside.com 2019 - 2024. All rights reserved.