Post not yet marked as solved
Post marked as unsolved with 1 replies, 364 views
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?