> For the complete documentation index, see [llms.txt](https://docs.thewalletcrew.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in/apple-sign-in.md).

# Apple sign-in

Configure Sign in with Apple and connect it to The Wallet Crew social sign-in.

Use this page to enable the **Apple** button in an enrolment form. Read [Social sign-in](https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in.md) first for the customer flow, the [hosts to allow](https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in.md#hosts-to-allow) and the way to [enable a provider on the form](https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in.md#enable-a-provider-on-the-form).

<figure><img src="https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2FBP9fhwq1Tpq6pxxvW29G%2FApple-Social-Sign-In.png?alt=media&#x26;token=24b7931d-1046-4f99-aff1-b6c4a37d2aab" alt="Enrolment form with an Apple sign-in button" width="375"><figcaption><p>Connect with Apple in an enrolment form example</p></figcaption></figure>

## What is set up here

Apple is configured in two places:

1. **Apple Developer**: App ID, Service ID, domains and return URLs. The brand's **Apple Developer** account is required, with permission to manage **Identifiers** and **Service IDs**.
2. **The Wallet Crew admin console**: paste the Apple **Service ID** in the **Service identifier** field.

Apple Wallet must be configured on the tenant before Sign in with Apple can be enabled.

## Configure Sign in with Apple

{% stepper %}
{% step %}

### Open Identifiers

1. Sign in to the Apple Developer account.

<p align="center"><a href="https://developer.apple.com/account" class="button secondary" data-icon="chevrons-right">Developer Account</a></p>

2. Go to **Certificates, IDs & Profiles → Identifiers**.
   {% endstep %}

{% step %}

### Create (or reuse) an App ID

1. Click **+** and select **App IDs**.

<div><figure><img src="https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2Fgit-blob-ec290865ca438429c3b1bd6a2e54ab910a196cdc%2Fapple-developer-identifiers-list.png?alt=media" alt="Apple Developer identifier list with the plus button"><figcaption><p>Click the + button in the identifier list.</p></figcaption></figure> <figure><img src="https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2FJdEyrLcxNs6vf0469trW%2Fenroll-apple-sign-select-app-id.png?alt=media&#x26;token=ef126398-73e9-459d-81fe-09ae0649559c" alt="Identifier type list with App IDs selected"><figcaption><p>Check that App IDs is the selected identifier type.</p></figcaption></figure></div>

> An existing App ID for the same domain or app can sometimes be reused. This can unlock advanced scenarios. When in doubt, ask The Wallet Crew team.

2. Select the **App** type.
3. Fill the form with:
   1. **Description**: a meaningful name for the project
   2. **Bundle ID**: an explicit Bundle ID in reverse-domain style (example: `com.brand.wallet.app`)
   3. **Capabilities**: enable **Sign In with Apple**

<figure><img src="https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2FNrV4vfbTBze7JhFZRSzO%2Fenroll-apple-sign-capabilities.png?alt=media&#x26;token=e2ccbac7-637a-4ac5-9e38-577bdb4ca88f" alt="Capabilities list with Sign In with Apple enabled" width="563"><figcaption><p>Check that Sign In with Apple is enabled in the capabilities list.</p></figcaption></figure>

4. Validate the form and click **Register**.

<figure><img src="https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2Fgit-blob-b3f44d3372af3528242837efe1277416f6b37dad%2Fapple-developer-confirm-app-id.png?alt=media" alt="Apple Developer Confirm your App ID page with the Register button highlighted"><figcaption><p>Review the App ID details, then select <strong>Register</strong>.</p></figcaption></figure>
{% endstep %}

{% step %}

### Create (or reuse) a Service ID

A **Service ID** is required for Sign in with Apple on the web.

1. In the identifier list, switch the filter to **Service IDs**.
2. Click **+** and select **Service IDs**.

<div><figure><img src="https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2Fgit-blob-ec290865ca438429c3b1bd6a2e54ab910a196cdc%2Fapple-developer-identifiers-list.png?alt=media" alt="Apple Developer identifier list with the plus button" width="420"><figcaption><p>Click the + button in the identifier list.</p></figcaption></figure> <figure><img src="https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2FW5S81oHDz821XRBtA0X1%2Fenroll-apple-sign-service-id.png?alt=media&#x26;token=9090bd74-0f39-43ce-9c06-a5d7a0de0a20" alt="Identifier type list with Service IDs selected" width="563"><figcaption><p>Select Service IDs as the identifier type.</p></figcaption></figure></div>

3. Fill the form with:
   1. **Description**: a meaningful name for the service
   2. **Identifier**: a unique identifier in reverse-domain style (example: `com.brand.wallet.service`)

<figure><img src="https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2Fgit-blob-d9b4e32e4ac89e5083ebf3bf408a2c26b138ab3c%2Fapple-developer-register-services-id.png?alt=media" alt="Service ID form with the identifier filled in"><figcaption><p>Check the Service ID identifier: it is the value to paste in the admin console.</p></figcaption></figure>

4. Validate the form and click **Register**.
   {% endstep %}

{% step %}

### Configure Sign in with Apple (domains and return URLs)

1. On the identifier list, select the Service ID just created.
2. Enable **Sign in with Apple** and click **Configure**.

<figure><img src="https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2FfOqYBv3X5QBlsbI1ZQXt%2Fenroll-apple-sign-configure-sign-apple-domains-return-urls.png?alt=media&#x26;token=63e553c4-401a-4159-bf79-b87ec14669b8" alt="Service ID with Sign in with Apple enabled, before opening Configure"><figcaption><p>Check that Sign in with Apple is enabled before opening Configure.</p></figcaption></figure>

3. Fill the form with:
   1. **Primary App ID**: the App ID created earlier (example: `com.brand.wallet.app`)
   2. **Domains and subdomains**: add the hosts listed in [Hosts to allow](https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in.md#hosts-to-allow)
   3. **Return URLs**: add the origin of every host in [Hosts to allow](https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in.md#hosts-to-allow), exactly as `https://<host>`, with no path and no trailing slash. Example: `https://app.neostore.cloud`. The form uses the page origin as return URL. The prefix `neostore` is the platform's former name and is kept in technical identifiers.

<figure><img src="https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2F7H0WPRVsriaX38ErKopd%2Fenroll-apple-sign-return-urls.png?alt=media&#x26;token=f4e0aba1-7fc3-4a2e-ae0a-3447cf77890b" alt="Return URLs field with one origin per host"><figcaption><p>Check every return URL for an exact match: scheme and host, no path, no trailing slash.</p></figcaption></figure>

4. Validate the form and click **Continue**.

{% hint style="warning" %}
Apple is strict here. Use the exact values.
{% endhint %}
{% endstep %}

{% step %}

### Optional: configure email communication domains

Do this only when the brand sends email to customers who chose **Hide My Email**. Apple generates a relay address such as `randomstring@privaterelay.appleid.com`. The sending domain must be registered, or Apple rejects those emails. Treat relay addresses like normal email addresses in the backend.

**Open the Services section**

* In **Certificates, IDs & Profiles**, click **Services** in the left menu.
* Click **Sign in with Apple for Email Communication**.
* Click **Configure**.

<figure><img src="https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2FepEkquqXE1fI7pCSDQBP%2Fenroll-apple-sign-configure.png?alt=media&#x26;token=0b3eb4c9-0cfc-4386-81af-96e5be6b8434" alt="Sign in with Apple for Email Communication service"><figcaption><p>Check that Sign in with Apple for Email Communication is the section being configured.</p></figcaption></figure>

* Under **Email Sources**, click the **+** button to add a new email source.

<figure><img src="https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2Fgit-blob-6581b8d0ee3c51da875ee5bb1779f0da9132d7ca%2Fapple-developer-email-sources-list-clean.png?alt=media" alt="Email Sources list with the sending domains and addresses"><figcaption><p>Check that every sending domain and address appears under Email Sources.</p></figcaption></figure>

**Fill the form with:**

* **Domains and Subdomains**: add the domain(s) used to send email. Example:

  ```
  myapp.com
  mail.myapp.com
  ```
* **Email Addresses**: add the sender email address(es) used by the application. Example:

  ```
  noreply@myapp.com
  support@myapp.com
  ```

<figure><img src="https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2FBxNTARJf4jAQDqSmxwRw%2Fenroll-apple-sign-fill-form.png?alt=media&#x26;token=5372fa81-7198-40db-914b-5f2fea735d6a" alt="Email source form with the domains and sender addresses filled in"><figcaption><p>Check the domains and sender addresses before submitting the form.</p></figcaption></figure>

* Click **Next** and complete validation (SPF/DKIM verification if required).
  {% endstep %}
  {% endstepper %}

## Terminology (Apple)

* **App ID**: identifies the app. Uses a **Bundle ID** like `com.brand.app`.
* **Service ID**: identifies a web sign-in integration. This is the value pasted in The Wallet Crew.
* **Domains and subdomains**: the hosts that serve the enrolment form (see [Hosts to allow](https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in.md#hosts-to-allow)).
* **Return URLs**: the URLs Apple returns to after sign-in. The enrolment form uses the page origin, so each return URL is `https://<host>`.

## Apple behavior notes

Sign in with Apple has a few behaviors that impact the enrolment journey and the matching rules.

On the **first sign-in** with a given Apple account, Apple can provide **first name**, **last name**, and **email**. On **subsequent sign-ins**, Apple typically returns **email only**.

{% hint style="warning" %}
Apple customers can enable **Hide My Email**. In that case, Apple returns a relay address instead of the customer’s real email.

That relay email can create duplicates if the CRM expects another identifier. When customers are emailed, delivery to Apple relay addresses may also need to be supported.
{% endhint %}

Apple’s reference: [Communicating Using the Private Email Relay Service](https://developer.apple.com/documentation/signinwithapple/communicating-using-the-private-email-relay-service/).

## Configure Apple in The Wallet Crew

1. In the admin console, open **Settings → Enrollment → Social sign in → Apple**.

<p align="center"><a href="https://admin.thewalletcrew.io/tenant/~/settings/social-sign-in/apple" class="button secondary" data-icon="chevrons-right">Social sign in → Apple</a></p>

<div data-with-frame="true"><figure><img src="https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2Fgit-blob-9eadde8276e0be56f615d8620e649e546779cb1f%2Fsocial-sign-in-apple-settings-single-frame.png?alt=media" alt="Apple tab of the Social sign in settings in the admin console"><figcaption><p>The Wallet Crew - Apple Social Sign In configuration</p></figcaption></figure></div>

2. Fill the **Service identifier** with the identifier used when creating the Service ID (example: `com.brand.wallet.service`).
3. Save.

## Enable Apple on the enrolment form

Add the provider to the form as described in [Enable a provider on the form](https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in.md#enable-a-provider-on-the-form), with `type: apple` and `displayProps` `isMobile: true`, `isIOS: true`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in/apple-sign-in.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
