<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASCredentialProviderViewController/prepareInterfaceForExtensionConfiguration()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "c:objc(cs)ASCredentialProviderViewController(im)prepareInterfaceForExtensionConfiguration"
  },
  "title" : "prepareInterfaceForExtensionConfiguration()"
}
-->

# prepareInterfaceForExtensionConfiguration()

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

```
func prepareInterfaceForExtensionConfiguration()
```

## Discussion

The system calls this method after the user enables your extension in Settings. Use this method to prepare a user interface for configuring the extension. You can also use the method to tell the system what credential identities your extension supports by adding them to the shared [`ASCredentialIdentityStore`](/documentation/AuthenticationServices/ASCredentialIdentityStore) instance. Any identities you add become available as AutoFill suggestions.

After finishing configuration, tell the system to dismiss your view controller by calling the context’s [`completeExtensionConfigurationRequest()`](/documentation/AuthenticationServices/ASCredentialProviderExtensionContext/completeExtensionConfigurationRequest()) method.

> Note:
> To receive a call to this method, specify the <doc://com.apple.documentation/documentation/BundleResources/Information-Property-List/NSExtension/NSExtensionAttributes/ASCredentialProviderExtensionCapabilities/ShowsConfigurationUI> key with a value of `YES` in the <doc://com.apple.documentation/documentation/BundleResources/Information-Property-List/NSExtension/NSExtensionAttributes/ASCredentialProviderExtensionCapabilities> dictionary, within the <doc://com.apple.documentation/documentation/BundleResources/Information-Property-List/NSExtension/NSExtensionAttributes> dictionary in the extension’s <doc://com.apple.documentation/documentation/BundleResources/Information-Property-List>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)