Class

ASCredentialProviderViewController

A view controller that a password manager app uses to extend Password AutoFill.

Declaration

@interface ASCredentialProviderViewController : UIViewController

Overview

To integrate a password manager app with AutoFill:

  1. Add a Credential Provider Extension target to your project that subclasses ASCredentialProviderViewController. Add the AutoFill Credential Provider Entitlement to both the extension and its containing app.

  2. Override the view controller’s prepareCredentialListForServiceIdentifiers: method to prepare a view with a list of credentials from which the user can pick after opening your extension from the QuickType bar.

  3. Optionally add ASPasswordCredentialIdentity instances to the shared ASCredentialIdentityStore to make identities available directly in the QuickType bar. Then override the provideCredentialWithoutUserInteractionForIdentity: method to provide the associated credentials when the user taps an item in the bar.

  4. Optionally, override the prepareInterfaceForExtensionConfiguration method to specify a configuration interface that you can show when users first enable your password manager in Settings.

Topics

Getting the Extension Context

extensionContext

The context your credential provider extension uses to provide information to the system.

ASCredentialProviderExtensionContext

A mechanism that credential provider extensions use to communicate with the system.

Configuring the Credential Provider Extension

- prepareInterfaceForExtensionConfiguration

Prepares the interface to enable the user to configure the extension.

ASCredentialIdentityStore

A container that your extension fills to provide credentials through the QuickType bar.

Selecting a Credential

- prepareCredentialListForServiceIdentifiers:

Prepares the interface to display a list of credentials from which the user can select.

ASCredentialServiceIdentifier

An identifier representing a particular service for which the user needs a credential, like a web site.

Integrating Your Extension with the QuickType Bar

- provideCredentialWithoutUserInteractionForIdentity:

Attempts to provide the user-requested credential with no further user interaction.

- prepareInterfaceToProvideCredentialForIdentity:

Prepares the interface for a user interaction, like a database login, that enables it to access and return the credential for the given identity.

ASPasswordCredentialIdentity

A description that uniquely identifies a particular credential.

Recognizing Errors

ASExtensionErrorDomain

The domain for a credential provider extension error.

ASExtensionErrorCode

The codes for a credential provider extension error.

Relationships

Inherits From

See Also

AutoFill Credential Provider Support

AutoFill Credential Provider Entitlement

A Boolean value that indicates whether the app may, with user permission, provide user names and passwords for AutoFill in Safari and other apps.

Key: com.apple.developer.authentication-services.autofill-credential-provider