reportAllAcceptedPublicKeyCredentials(forRelyingParty:userHandle:acceptedCredentialIDs:)
Receives a report from the system that a relying party sent a snapshot of all accepted credentials for an account.
Declaration
func reportAllAcceptedPublicKeyCredentials(forRelyingParty relyingParty: String, userHandle: Data, acceptedCredentialIDs: [Data])Parameters
- relyingParty:
The relying party, typically a website, for which to save the credentials.
- userHandle:
The user identifier.
- acceptedCredentialIDs:
An array of identifiers that uniquely identifies the accepted credentials.
Discussion
The system calls this method when a relying party sends a list of accepted credentials by calling reportAllAcceptedPublicKeyCredentials(relyingPartyIdentifier:userHandle:acceptedCredentialIDs:). Your manager can hide or remove any credential that’s absent from the acceptedCredentialIDs array.
To indicate support for this feature, add the key SupportsCredentialUpdate with a value of YES under the ASCredentialProviderExtensionCapabilities dictionary in your app’s information property list:
Info.plist
├─ NSExtension
├─ NSExtensionAttributes
├─ ASCredentialProviderExtensionCapabilities
├─ SupportsCredentialUpdate => YES