> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PlayFab で Sign In with Apple をセットアップする

> Application Identifier のセットアップ、Apple 証明書、プレイヤー認証のための OpenID 構成を含め、PlayFab で Sign in with Apple をセットアップします。

このガイドでは、PlayFab アプリケーションで Sign in with Apple を活用するために必要な一連の手順について説明します。

## Application Identifier をセットアップする

アプリケーションで Sign in with Apple を使用するには、Apple の開発者ポータルの [Certificates, Identifiers & Profiles](https://developer.apple.com/account/resources/certificates/list) セクションでいくつかのセットアップ手順に対応する必要があります。

1. [Apple Developer Program](https://developer.apple.com/programs/) アカウントにサインインします。
2. **Certificates, Identifiers & Profiles** を選択します。
3. **Identifiers** ペインで、Application Identifier を選択するか、**(+)** を選択して新しい識別子を作成します。

<Note>
  新しい識別子を作成する場合は、新しい識別子タイプとして **App IDs** を選択します。
</Note>

4. 機能の一覧をスクロールして、**Sign in with Apple** を選択します。
5. **Sign in with Apple** のセットアップ ポップアップで **Continue** または **Save** を押します。
6. Application Identifier を完全に作成し、更新してください。

識別子は、簡単にアクセスできる場所に保存してください。次の一連の手順で使用します。

<Info>
  PlayFab は、iOS または MacOS タイトルからの Sign in with Apple のみサポートしています。
</Info>

## PlayFab で Apple アドオンをセットアップする

PlayFab で Apple アドオンをセットアップするには:

1. [Game Manager](https://developer.playfab.com) にサインインします。
2. My Studios and Titles ページからタイトルを選択します。
3. **Add-ons** ペインで **Apple** プラットフォームを選択します。
4. Apple アドオンをインストールするには、**Install Apple** を選択します。
5. **iOS App Bundle ID** を、前のセクションで取得した App ID に設定します。

<Note>
  この時点で、ID トークンの有効期限を無視するかどうかを選択する必要があります。
</Note>

選択肢は次のとおりです。

* 有効期限を無視する: セキュリティは低くなりますが、ユーザー エクスペリエンスは向上します。ただし、Apple が署名キーをローテーションすると、期限切れの ID トークンは検証できなくなります。この場合、ユーザーは新しい ID トークンを提供するためにサインインし直す必要があります。
* 有効期限を尊重する: よりセキュアなエクスペリエンスを提供しますが、ユーザーが複数回サインインする必要が生じる可能性があります。Apple の ID トークンは現在 10 分後に期限切れになるため、その後タイトルはユーザーに再度サインインを要求して新しいトークンを取得する必要があります。

6. 選択したユーザー エクスペリエンスに応じて、**Ignore expiration date for identity tokens** を設定します。

<Tip>
  ID トークンの有効期限を無視することを選択した場合、タイトルは Apple から取得した ID トークンをローカルに保存してください。ID トークンは、ログインのたびに再利用されます。
</Tip>


## Related topics

- [PlayFab で Sign In with Battle.net をセットアップする](/ja-jp/services/playfab/identity/player-identity/platform-specific-authentication/battlenet-login.md)
- [Partner Center で XBOX 製品をセットアップする](/ja-jp/publishing/game-publishing/publishing-processes/managed-creators/publishing-processes-product-onboarding-and-configuration.md)
- [Partner Center で組織をセットアップする](/ja-jp/home/onboarding-access/setup-organization.md)
- [クラフト ゲーム パート 1 - セットアップ](/ja-jp/services/playfab/economy-monetization/economy-v2/tutorials/craftingGame/crafting-game-environment.md)
- [ストリーミング用に XBOX 開発キットをセットアップする](/ja-jp/build/core-features/common/game-streaming/game-streaming-setup-xbox-developer-kit.md)
