View in English

  • メニューを開く メニューを閉じる
  • Apple Developer
検索
検索を終了
  • Apple Developer
  • ニュース
  • 見つける
  • デザイン
  • 開発
  • 配信
  • サポート
  • アカウント
次の内容に検索結果を絞り込む

クイックリンク

5 クイックリンク

ビデオ

メニューを開く メニューを閉じる
  • コレクション
  • トピック
  • すべてのビデオ
  • 利用方法

その他のビデオ

ストリーミングはほとんどのブラウザと
Developerアプリで視聴できます。

  • 概要
  • トランスクリプト
  • Apple TVの認証コンテクスト

    Apple TVの認証コンテクストについて、機能、およびこのWebサービスをどのように構築し始めるかについて確認します。また、どのように確証コンテクストをApple TV Distribution Programの開発に適合させるかについて確認します。

    リソース

    • Single Sign-On - Create an Authentication Context
      • HDビデオ
      • SDビデオ

    関連ビデオ

    Tech Talks

    • Apple TV AppとUniversal Searchビデオのインテグレーション - Part 1
    • Apple TV AppとUniversal Searchビデオのインテグレーション - Part 2
    • Apple TV Distribution Programの概要
    • Apple TV Set Top Box API
    • Apple TV VSAフレームワーク
  • このビデオを検索

    Shloka Kini: The authentication context is a web service that presents the authentication UI and communicates with your identity provider server to authenticate your customer's credentials.

    It is one of many steps you will need to take to get the Single Sign-On feature for your TV provider on iOS and tvOS devices as part of the Apple TV distribution program.

    The authentication context is a web service hosted on your server that is downloaded to an Apple device and executed at run time.

    When the authentication context passes an authentication response to the VideoSubscriberAccount framework it is saved into the device keychain.

    On iOS devices the authentication response can be synced to other iOS devices via iCloud Keychain.

    And on Apple TV, the authentication response will not leave the device because tvOS does not support iCloud Keychain.

    The purpose of the authentication context is to provide OS-level authentication across supported apps.

    The first step of this process is to prompt a person to type in their credentials by presenting them UI for authentication.

    To specify the UI for this credential entry, use an authenticationTemplate.

    This is an XML document similar to the examples we provide in documentation.

    When you provide us this XML, we take it and format it to look like part of the Apple system UI, depending on which platform the person is using.

    For example, the default username-password template here, can be applied to both iOS and tvOS devices.

    The autoAuthenticationTemplate doesn't ask the customer to enter credentials.

    Instead, it informs the customer which account they will be automatically authenticated to, and gives them an option to manually sign in to a different account.

    This template is also applicable to both iOS and tvOS devices.

    If you are not able to directly take credentials from a customer, we provide alternative templates for authentication in special cases.

    The onscreenCode AuthenticationTemplate only applies to tvOS.

    It displays an onscreen code for a person to enter on a web browser on a separate device, such as their phone, tablet, or computer.

    The webAuthenticationTemplate applies only to iOS devices.

    It launches a web view, like this, using the URL specified.

    To communicate between the authentication context and the web view that is launched, you use the VideoSubscriberAccount class.

    To get started, you will create an authentication context with JavaScript and define the authentication UI with XML templates.

    Host this JavaScript file on your server.

    Remember only to write one authentication context, because the same one can be used for both devices.

    Lastly, after writing your context and XML, send us the TV provider onboarding data.

    This data includes the name to be displayed in our UI for the TV provider; the identifier for the TV provider, which will be used in our systems to identify the TV provider uniquely amongst others; and the authentication URL, the URL we need to ping on the TV provider server to access and download your authentication context to device.

    Send us the artwork to be displayed for the TV provider's brand in the App Store UI.

    For more details on the artwork specs, see our documentation.

    Send us a supported channel list.

    This is an optional piece of onboarding data.

    Here, a channel references TV provider-supported apps.

    In the Apple TV distribution program, one app will be automatically installed after the authentication flow; that's the main app.

    If you have any additional apps that use your TV provider credentials, use this list to show those other TV provider-supported apps to the customer.

    To begin developing the authentication context, handle the callbacks for requests made by the VideoSubscriberAccount framework to the authentication context.

    The first is onLaunch.

    This indicates what should happen after a TV provider is selected from the VideoSubscriberAccount list.

    After selecting a TV provider, a pending screen appears until the next callback.

    onShowUserInterface.

    After launch, then you must handle the callback to show the authentication template for credential entry.

    Next is onRequest.

    After credentials are entered, you take those credentials and send them directly to your identity provider server.

    These credentials are not stored on device.

    An authentication response is sent back from the server to the authentication context to the VideoSubscriberAccount framework to establish system-level authentication.

    App-level authentication requests will only be sent for processing if this system-level authentication is good.

    To debug your application, enable Developer Mode on your iOS and tvOS devices to add and test your TV provider before code is live.

    To specifically debug your authentication context, use Safari Web Inspector.

    Make sure to enable Web Inspector on device so your macOS device can debug the JavaScript.

    In summary, the authentication context is a JavaScript-based web service that facilitates communication between the identity provider server for a TV provider and the VideoSubscriberAccount framework.

    Thank you.

Developer Footer

  • ビデオ
  • Tech Talks
  • Apple TVの認証コンテクスト
  • メニューを開く メニューを閉じる
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    Open Menu Close Menu
    • Swift
    • SwiftUI
    • Swift Playground
    • TestFlight
    • Xcode
    • Xcode Cloud
    • SF Symbols
    メニューを開く メニューを閉じる
    • アクセシビリティ
    • アクセサリ
    • App Extension
    • App Store
    • オーディオとビデオ(英語)
    • 拡張現実
    • デザイン
    • 配信
    • 教育
    • フォント(英語)
    • ゲーム
    • ヘルスケアとフィットネス
    • アプリ内課金
    • ローカリゼーション
    • マップと位置情報
    • 機械学習
    • オープンソース(英語)
    • セキュリティ
    • SafariとWeb(英語)
    メニューを開く メニューを閉じる
    • 英語ドキュメント(完全版)
    • 日本語ドキュメント(一部トピック)
    • チュートリアル
    • ダウンロード(英語)
    • フォーラム(英語)
    • ビデオ
    Open Menu Close Menu
    • サポートドキュメント
    • お問い合わせ
    • バグ報告
    • システム状況(英語)
    メニューを開く メニューを閉じる
    • Apple Developer
    • App Store Connect
    • Certificates, IDs, & Profiles(英語)
    • フィードバックアシスタント
    メニューを開く メニューを閉じる
    • Apple Developer Program
    • Apple Developer Enterprise Program
    • App Store Small Business Program
    • MFi Program(英語)
    • News Partner Program(英語)
    • Video Partner Program(英語)
    • セキュリティ報奨金プログラム(英語)
    • Security Research Device Program(英語)
    Open Menu Close Menu
    • Appleに相談
    • Apple Developer Center
    • App Store Awards(英語)
    • Apple Design Awards
    • Apple Developer Academy(英語)
    • WWDC
    Apple Developerアプリを入手する
    Copyright © 2025 Apple Inc. All rights reserved.
    利用規約 プライバシーポリシー 契約とガイドライン