<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoSubscriberAccount",
  "identifier" : "/documentation/VideoSubscriberAccount/VSAccountProviderAuthenticationScheme",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Video Subscriber Account"
    ],
    "preciseIdentifier" : "c:@T@VSAccountProviderAuthenticationScheme"
  },
  "title" : "VSAccountProviderAuthenticationScheme"
}
-->

# VSAccountProviderAuthenticationScheme

Authentication schemes for account provider requests and responses.

```
struct VSAccountProviderAuthenticationScheme
```

## Discussion

If the minimum version your app supports is outside the availability of the [`VSAccountProviderAuthenticationScheme`](/documentation/VideoSubscriberAccount/VSAccountProviderAuthenticationScheme) values, you must create an authentication scheme value using the raw string.

```swift
let request = VSAccountMetadataRequest()
// ...
if #available(iOS 13.0, *) {
  request.supportedAuthenticationSchemes = [.api]
} else {
  request.supportedAuthenticationSchemes = [VSAccountProviderAuthenticationScheme("API")]
}
```

The following table shows the raw strings for the [`VSAccountProviderAuthenticationScheme`](/documentation/VideoSubscriberAccount/VSAccountProviderAuthenticationScheme) values.

|Scheme|Raw Value|
|------|---------|
|saml  |“SAML”   |
|api   |“API”    |

## Topics

### Creating an Authentication Scheme

[`init(String)`](/documentation/VideoSubscriberAccount/VSAccountProviderAuthenticationScheme/init(_:))

Creates a new authentication scheme with the specified string.

[`init(rawValue: String)`](/documentation/VideoSubscriberAccount/VSAccountProviderAuthenticationScheme/init(rawValue:))

Creates a new authentication scheme with the specified raw value.

### Authentication Scheme Types

[`static let saml: VSAccountProviderAuthenticationScheme`](/documentation/VideoSubscriberAccount/VSAccountProviderAuthenticationScheme/saml)

Represents a SAML authentication scheme.

[`static let api: VSAccountProviderAuthenticationScheme`](/documentation/VideoSubscriberAccount/VSAccountProviderAuthenticationScheme/api)

Represents any authentication scheme.

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

---

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)