AutoFill Credential Provider Extension

I want to update the existing ASPasswordCredentialIdentity stored in ASCredentialIdentityStore. I used the saveCredentialIdentities method of ASCredentialIdentityStore but it doesn't replace a new username in ASCredentialIdentityStore instead it adding a duplicate entry for a new username.


I tried to remove first old ASPasswordCredentialIdentity from the store and then add a new entry using saveCredentialIdentities but it also adds a duplicate entry with a new username.


But replaceCredentialIdentities works fine. But to update single entry replacing the whole ASCredentialIdentityStore is not good practice.


How to update existing ASPasswordCredentialIdentity with new username but the same identifier?

Replies

Try checking whether the credential store supports incremental updates with supportsIncrementalUpdates. If not, you may want to look at passing all credential identities to saveCredentialIdentities.



Matt Eaton

DTS Engineering, CoreOS

meaton3 at apple.com