TouchID for Login User with database Parse.com in iOS 8.0

寵の児 提交于 2019-12-05 07:45:07

问题


Hello to all I want to do a little question ... I'm using parse.com in my app. The login procedure of my user is through the use of parse.com with the classic method username and password that the user types in two textField.

So far everything works but I wanted to implement an additional method of login using the TouchID, but it becomes hard to implement with parse.com because the touchID identifies the impression and the user is not in the database Parse.com therefore when using the TouchID my app returns (rightly) an error because it does not recognize the user among those present in the database ...

Have any of you managed to use the method of biometric TouchID for a login created through parse.com ??? or you know if there is a method that can allow me to do this?

Thank you all


回答1:


TouchId is just used to authenticate a user to the device - it does not identify a user. You can have fingerprints for different people enrolled into the phone but there is no identity stored with them - they are just valid credentials to authenticate to the device.

You can use touchId to retrieve items from the keychain, so you can store your Parse userid and password in the keychain (the user will need to type them the first time) and then use touchID to unlock these stored credentials for future authentication.

Apple have some sample code that demonstrates using touchID to authenticate to the keychain and for local authentication



来源:https://stackoverflow.com/questions/26481720/touchid-for-login-user-with-database-parse-com-in-ios-8-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!