Apple Sign In
Connect Apple Sign In to Membership — let your users sign in with Apple Sign In.
Lets your users sign in with their Apple Account, through a Services ID and a private key of your Apple Developer account.
Get your credentials
You need a paid Apple Developer account and a primary App ID with Sign in with Apple.
Sign in to Certificates, Identifiers & Profiles and open Identifiers. Press +, choose Services ID, Continue, enter a description and an identifier such as
com.acme.app.signin, and Register. This is the Services Id.Open the Services ID, tick Sign in with Apple and press Configure. Choose your primary App ID (its bundle id, such as
com.acme.app, is the App Bundle Identifier). Under Website URLs, add your domains and return URLs (comma separated), then Done, Continue, Save.Open Keys, press +, tick Sign in with Apple, Configure it with the same App ID, and Register. Note the Key ID and Download the
.p8file — Apple lets you download it only once.Your Team ID is shown in your Apple Developer account under Membership details.
Source: Apple, Configure Sign in with Apple for the web and Create a Sign in with Apple private key. The same Team ID and key steps for push notifications are on Apple Push Notification service.
Connect it in Cloud
Where: Membership → Integrations → Add New Integration → Apple Sign In → Connect · /projects/<project>/membership/integrations/new/apple
Fill the form and press Save. The form stays open as Editing Apple Sign In integration with the ENABLED badge and the new id (int_5LMZS6z39FbMeVzvFcEYls).
Team Id
yes
Your Apple Developer team.
ABCDE12345
App Bundle Identifier
yes
The bundle id of your primary App ID.
com.acme.app
Services Id
yes
The Services ID you registered for the web.
com.acme.app.signin
Key Id
yes
The id of the Sign in with Apple key.
KEY1234567
Private key (.p8)
yes
The text of the .p8 file, from -----BEGIN PRIVATE KEY----- to the end. Encrypted on save and never shown again.
the text of your .p8 file
Production environment
no
Use Apple production Sign-In gateway: on for production, off for the sandbox while you build.
off
Integration Name
yes
The name in your integrations list.
Sign in with Apple
OAuth Modes — press Add OAuth mode for each surface of your app (web, mobile, admin) that signs in with this provider:
Mode name
yes
A name for the surface.
web
Callback URL
yes
Where the user lands in your app after signing in.
https://app.example.com/auth/apple/callback
Logout URL (optional)
no
Where the user lands after signing out.
—
Failure redirect URL (optional)
no
Where the user lands when the sign-in fails.
https://app.example.com/sign-in?failed=1
Role to assign on first sign-in (optional)
no
The role a new user gets on the first sign-in.
—



Test and set as default
Membership integrations have no Test and no Set as default in Cloud — see Test an integration and Set an integration as default. Check the values against the provider's console; Actions → Disable turns the integration off — see Disable or delete an integration.
Common errors
Required under a field
A required field is empty.
Fill it; on a saved integration, type the secret again.
Secret is not provided (CM-ERRORS-SECRETS-001)
Saved from code without the secret.
Send the secret on every save.
invalid_client (at Apple)
Services Id, Key Id, Team Id or the key do not belong together.
Check the four values in Certificates, Identifiers & Profiles; paste the .p8 text again.
Messages marked (at …) are the provider's own, shown to the user while signing in; see the provider documentation.
Do it from code
With the SDK, send the same object as integration to saveMembershipIntegration — see the run example on Providers and in Save Membership Integration. Send isEnabled: true; to update, add the id as integrationId and the secret again. API: Save Membership Integration
Last updated