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.
Sign in to your Apple Developer Program account.
Select Certificates, Identifiers & Profiles.
In the Identifiers pane, select your Application Identifier, or select (+) to create a new identifier.
If you are creating a new identifier, select App IDs as the new identifier type.
Scroll through the list of capabilities and select Sign in with Apple.
Press Continue or Save on the Sign in with Apple setup popup.
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.
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:
- Log in to the PlayFab Game Manager.
- Select your title from the My Studios and Titles page.
- In the Add-ons pane, select the Apple platform.
- To install the Apple add-on, select Install Apple.
- Set the iOS App Bundle ID to the App ID that your retrieved in the previous section.
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.
- Set the Ignore expiration date for identity tokens as appropriate for your chosen user experience.
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.