How to implement FIDO2 based biometric authentication in iOS app ?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi,
In my app I want to initiate device passcode authentication. (No need of touch ID, so not using Local authentication). For that I am adding the below query to keychain
kSecClass: kSecClassGenericPassword,
kSecAttrAccessControl: secAccessControlbject,
kSecAttrService: "PasscodeAuthentication",
kSecValueData: dataToStore as Any,
]
SecItemAdd(insertQuery as CFDictionary, nil)
Then at the point where I want to initiate passcode authentication calling bellow method:
let status: OSStatus = SecItemCopyMatching(query, &typeRef)
This was working fine.
But When I initiate method to get the query from a closure it is not working and trowing error code -25293.
If I add a delay before calling this method it is working fine.
Why this is happening ?
Is there a way to determine whether the user disabled the faceID in the app settings programatically
I have integrated the face ID authentication using LAPolicy.deviceOwnerAuthentication of LocalAuthentication
Is there a way to determine whether the user disabled the faceID in the app settings programatically ?
I am using deviceOwnerAuthentication policy of local authentication for biometric authentication. If user have not added any fingerprints or faceID, is there a method to determine it. LABiometricType is only checking if the device can support the touch/face ID. Couldn't find a method to determine if the user have added it.