# Apple

In this How To, we’ll go through all settings needed to setup Sign in with Apple for LootLockers Unified Player Accounts. This allows your users to authenticate with Sign in with Apple on <https://auth.game> to start remote sessions or link their accounts to other accounts.

### Prerequisities

* [A Game on LootLocker](/the-basics/readme.md)
* [An existing Apple app with an App ID](/players/authentication/how-to/sign-in-with-apple.md)
* [An Apple Developer Account](https://developer.apple.com)

Go to your [Apple Developer Dashboard](https://developer.apple.com/account) and click on **Identifiers**.

<figure><img src="/files/TmN0BeGSrSRZfp9PCQ8W" alt=""><figcaption></figcaption></figure>

Now, we will create a new **Service ID** to be used with LootLocker. Click the Magnifying glass next to **App IDs** in the top right corner and choose **Service IDs**:

<figure><img src="/files/2KiN4xcmAhMvwzZ1b5Ko" alt=""><figcaption></figcaption></figure>

Click on the + next to **Identifiers** to create a new Service ID:

<figure><img src="/files/rx5wYucENcxeNbpDYvHA" alt=""><figcaption></figcaption></figure>

Select **Services ID** and click Continue: Enter a description and an identifier for your **Services ID** and click Continue:

<figure><img src="/files/ASVqLwTv6OxQZPbYI7al" alt=""><figcaption></figcaption></figure>

Verify your information and click **Register**:

<figure><img src="/files/Nr3gcP4s53F6XRWndNST" alt=""><figcaption></figcaption></figure>

Back in the list of **Services IDs**, click your newly created **Service ID**:

<figure><img src="/files/MjAS2dm9DXsEHi9IC74b" alt=""><figcaption></figcaption></figure>

Enable **Sign in with Apple** by checking the checkbox and then click on \*\*Configure:

<figure><img src="/files/v4mzm9cORCxvQrqy8Vs3" alt=""><figcaption></figcaption></figure>

Select your already existing **App ID** from the dropdown list. In the field Domains & Subdomains, input

* `auth.game`
  * NOTE: without **https\://**
* In Return URLs, enter
  * `https://auth.game/return/apple`

Click **Next**

<figure><img src="/files/G4P1ynFGYVh6kWEYwyJ8" alt=""><figcaption></figcaption></figure>

On the next screen, simply press **Done**:

<figure><img src="/files/OEbT5h86kCrlqwFn5DYY" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
We’ve now configured a **Service**. Next up is to create a **Key** that is shared between LootLocker and Apple.
{% endhint %}

Click **All Identifiers** in the top left corner of the screen, and then select **Keys** in the list, or enter the URL <https://developer.apple.com/account/resources/authkeys/list> Click the `+`-icon to create a new **Key**

<figure><img src="/files/Wrb5jjHFVDZXfTucX9uB" alt=""><figcaption></figcaption></figure>

Enter a name for the **Key**, and a description (optional). Mark the checkbox for **Sign In With Apple** and press **Configure**.

<figure><img src="/files/rbTxj2nkt0V2miE1VrpZ" alt=""><figcaption></figcaption></figure>

Select your the same **App ID** as you have in your app from the dropdown list and click **Save**

<figure><img src="/files/YQeAMH4eAV8F91N0gLxb" alt=""><figcaption></figcaption></figure>

We now get taken back to the previous screen, press **Continue**.

<figure><img src="/files/lurOVCUyKQrTBhlCsCso" alt=""><figcaption></figcaption></figure>

Now, click \*\*Register\*\*

<figure><img src="/files/jiR2qibEbCCZYjW60MA0" alt=""><figcaption></figcaption></figure>

Download the key and store it locally. Then press **Done**.

{% hint style="warning" %}
NOTE: Once the key has been downloaded, you can not access it again. Make sure that you don’t delete it or you will need to create a new key.
{% endhint %}

<figure><img src="/files/Dumc45byT1YfdhAFbsww" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Now, the full setup on Apple's side is complete and we can go to LootLocker to input our data.
{% endhint %}

First we will enable **External Authentication** and **Sign in with Apple** in the LootLocker [Web Console](https://console.lootlocker.com/settings/unified-player-accounts/apple)

<figure><img src="/files/pChBp5gnnA3EDk5cai8e" alt=""><figcaption></figcaption></figure>

With this enabled, we can now start to input the information that we have on our **Apple Developer Account**.

We start with **Client ID**. Got to the [Apple Developer Console](https://developer.apple.com/account/resources/identifiers/list) and copy the **Identifier** of your app:

<figure><img src="/files/it7Fu1OyLS3ov5tMgzIQ" alt=""><figcaption></figcaption></figure>

And then paste it into the **Client ID** field in LootLocker:

<figure><img src="/files/lukwDT8UAOeehrSWD912" alt=""><figcaption></figcaption></figure>

Next, we have **Bundle ID** and **Team ID**. Click the entry for your app that had the **Client ID** that you copied and copy the **Team ID** and **Bundle ID**:

<figure><img src="/files/nWt1mF0E7KgkDCywjDyf" alt=""><figcaption></figcaption></figure>

Paste them into LootLocker:

<figure><img src="/files/lIraCkICjMf4qThNzE2C" alt=""><figcaption></figcaption></figure>

Now, press **Choose File** and upload the file that you downloaded previously from Apple:

<figure><img src="/files/qa2sh6RXpTdJ0KJXvCpQ" alt=""><figcaption></figcaption></figure>

### Conclusion

In this How To, we’ve enabled and configured Sign in with Apple for [Unified Player Accounts](https://github.com/lootlocker/gitbook-sync/blob/main/players/unified-player-accounts/README.md). With **Sign in with Apple** available in your game, you are fully prepared to start remote sessions with [Apple](https://apple.com) and by adding more platforms to Unified Player Accounts, you unlock the possibility for players to connect all their accounts together, creating a [Unified Player Account](/players/unified-player-accounts.md) for them to sync their [game saves](/players/files.md), [progressions](/game-systems/progressions.md) [and more](https://github.com/lootlocker/gitbook-sync/blob/main/the-basics/what-is-lootlocker.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.lootlocker.com/players/unified-player-accounts/how-to/configure-in-web-console/configure_apple_sign_in.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
