Prepares the interface for a user interaction, like a database login, that enables it to access and return the credential for the given identity.
- iOS 12.0+
The credential identity for which a credential should be provided.
The system calls this method when your extension can’t provide the requested credential without user interaction. Set up the view controller for any user interaction required to provide the requested credential. Limit user interaction to operations required for providing the requested credential, like showing an authentication UI to unlock the user’s passwords database.
Call the context’s
complete to provide the credential. Alternatively, if an error occurs, call
cancel instead and pass an error with domain
ASExtension and an appropriate error code from
ASExtension. For example, if your app can’t find the credential identity in the database, pass an error with code