We use shared credentials in our iOS app. The workflow is as follows:
- The user is registered on our website in Safari.
- Safari asks "Save password?"
- User selects "Yes"
- The user launches our application, goes to login
- iOS shows a pop-up window in which the user can select an account.
- We request shared credentials previously entered into Safari and log in.
This works great.
However, if in step 3 you select "Never for this site", then in step 5 he can select an entry that says: "Passwords have not been saved."
And if he does, we will get the username "Passwords not saved" and password "".
Is there a way to prevent this behavior?
eg. Can we check before we call
public func SecRequestSharedWebCredential(fqdn: CFString?, _ account: CFString?, _ completionHandler: (CFArray?, CFError?) -> Void)
method if the user refused to save his password in Safari?
source
share