<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macOS: -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoSubscriberAccount",
  "identifier" : "/documentation/VideoSubscriberAccount/VSAccountManagerDelegate/accountManager(_:shouldAuthenticateAccountProviderWithIdentifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Video Subscriber Account"
    ],
    "preciseIdentifier" : "c:objc(pl)VSAccountManagerDelegate(im)accountManager:shouldAuthenticateAccountProviderWithIdentifier:"
  },
  "title" : "accountManager(_:shouldAuthenticateAccountProviderWithIdentifier:)"
}
-->

# accountManager(_:shouldAuthenticateAccountProviderWithIdentifier:)

Asks the delegate whether to authenticate the user with the selected provider.

```
optional func accountManager(_ accountManager: VSAccountManager, shouldAuthenticateAccountProviderWithIdentifier accountProviderIdentifier: String) -> Bool
```

## Parameters

`accountManager`

The account manager instance that requests the authentication view controller.

`accountProviderIdentifier`

The supported account provider the user has selected.

## Return Value

Return <doc://com.apple.documentation/documentation/Swift/true> to attempt authentication with the selected provider; otherwise, return <doc://com.apple.documentation/documentation/Swift/false> to respond with an unsupported provider error.

## Discussion

The system calls this method when the user chooses a provider from the list of supported providers; it isn’t called if the user selects “Other TV Providers”. Use this method to temporarily refrain from authenticating the user with the supported provider during a brief outage or service degradation.

If you don’t implement this method, the user can authenticate with all supported providers.

---

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)