Setup Sign In with Apple for PlayFab

This guide covers the series of steps needed to setup your PlayFab applications to take advantage of Sign in with Apple.

Setup your Application Identifier

Before you can use Sign in with Apple in your applications, you'll need to address some setup steps in the Certificates, Identifiers & Profiles section of Apple's developer portal.

  1. Sign in to your Apple Developer Program account.

  2. Select Certificates, Identifiers & Profiles.

  3. In the Identifiers pane, select your Application Identifier, or select (+) to create a new identifier.

    Note

    If you are creating a new identifier, select App IDs as the new identifier type.

  4. Scroll through the list of capabilities and select Sign in with Apple.

  5. Press Continue or Save on the Sign in with Apple setup popup.

  6. Ensure you fully create and update your application identifier.

Save the identifier where you can access it easily. You will use in the next set of steps.

Important

PlayFab only supports Sign in with Apple from IoS or MacOS Titles.

Setup the Apple Add-on in PlayFab

To setup the Apple Add-on in PlayFab:

  1. Log in to the PlayFab Game Manager.
  2. Select your title from the My Studios and Titles page.
  3. In the Add-ons pane, select the Apple platform.
  4. To install the Apple add-on, select Install Apple.
  5. Set the iOS App Bundle ID to the App ID that your retrieved in the previous section.

Note

At this point you need to choose whether you want to ignore the expiration date for identity tokens.

Your options are:

  • Ignore expiration dates: This provides a less secure, but better user experience.
  • Honor expiration dates: This provides a more secure experience at the expense of potentially causing the user sign in multiple times. Apple identity tokens currently expire after 10 minutes after which your Title must require the user to sign in again to obtain a new one.
  1. Set the Ignore expiration date for identity tokens as appropriate for your chosen user experience.

Tip

If you choose to ignore the expiration date for identity tokens, your Title should store the identity token that it obtains from Apple locally. The identity token will be reused to log in each time.