0

I want to use it in my Login screen. In detail, instead of asking user to enter Login Id and Password, I want user to go for Touch Id and if he/she is a device owner, then allow them to go inside app (Post Login screen).

My question is, if the user changes the password using a web application, then in this case touchId should fail. How can I achieve this?

Pang
  • 9,564
  • 146
  • 81
  • 122
Coder
  • 1,661
  • 4
  • 27
  • 50

1 Answers1

1

You can use Touch ID to protect a password that is stored in the keychain. Once the keychain item is unlocked then present the username/password to your web site for verification. If verification fails then prompt the user to enter the password. Once the new password has been successfully verified then update the keychain item.

Download the iTunesConnect app for an example of this behaviour.

Sample code on using TouchID with Keychain is here - https://developer.apple.com/library/ios/samplecode/KeychainTouchID/Introduction/Intro.html

Paulw11
  • 108,386
  • 14
  • 159
  • 186