Report an update to a credential's name, such as when changing the user name on an account.
This information is shared with all password managers enabled in the system.
- Parameters:
- relyingPartyIdentifier: Relying party (website) that the credential is saved for.
- userHandle: User identifier.
- newName: The new user name for the credential.
- Throws: `ASAuthorizationError` if the system failed to accept the update.
Report an unused password credential for a given domain and username. Password managers may remove or hide the password credential.
This information is shared with all password managers enabled in the system.
- Parameters:
- domain: The website domain that the credential is saved for.
- userName: The account user name.
- Throws: `ASAuthorizationError` if the system failed to accept the update.
Report that a specific credential is unknown or no longer accepted. The credential may be removed or hidden by a password manager.
This information is shared with all password managers enabled in the system.
- Parameters:
- relyingPartyIdentifier: Relying party (website) that the credential is saved for.
- credentialID: An identifier that uniquely identifies this credential.
- Throws: `ASAuthorizationError` if the system failed to accept the update.
Report a snapshot of all the credentialIDs that will be accepted for a `userHandle`. Credentials not present in the `acceptedCredentialIDs` may be removed or hidden by a password manager.
Relying party may choose to perform this periodically, e.g. on every sign in.
This information is shared with all password managers enabled in the system.
- Parameters:
- relyingPartyIdentifier: Relying party (website) that the credential is saved for.
- userHandle: User identifier.
- acceptedCredentialIDs: An array of identifiers that uniquely identifies the accepted credentials.
- Throws: `ASAuthorizationError` if the system failed to accept the update.
Save or update a password credential to the user's preferred password manager in the system.
This functionality is equivalent to the saving behavior that occurs when submitting a form with a password field.
The credential will be associated with the scope.
- Parameters:
- password: The password credential to save.
- scope: The scope to associate this credential with.
- title: A custom title that credential managers may use to name the account.
- Throws: `ASAuthorizationError` if the system failed to accept the update.
- Note: The scope's URL must be listed as an associated domain for Web Credentials for the current app _or_ the app must have the `com.apple.developer.web-browser` entitlement.