Members: sign in with Apple through your own Apple Developer account
Create a Services ID and a key in your own Apple Developer account, test the connection, and let members sign in with Apple on your domain.
Members sign in with Apple through your site's own Apple Developer account. SeedWebs has no shared Apple account for sites, so Apple's sign-in screen shows the name you set and the sign-in happens on your own domain.
Before you start
-
Your site needs a custom domain that is connected and active (on a plan that includes one, with SSL active): Apple only sends
people back to your own domain. A site still on
yoursite.seedwebs.appcannot turn Apple on. - An Apple Developer Program membership (Apple charges a yearly fee) in which you are the Account Holder or an Admin.
- In the admin, open Members ▸ Login settings, tab Sign-in methods, and turn the Apple switch on first: the Apple card appears under that row only then (admins only). Where your site can use Apple, the card shows its Domains and Subdomains, Return URLs and sender address, with copy buttons. Where it cannot yet, the card says why and what to do first instead.
1. Have an App ID with Sign in with Apple
Apple ties a Services ID to a primary App ID that has the Sign in with Apple capability. If you have none, create a new App ID under Certificates, Identifiers & Profiles ▸ Identifiers and tick Sign in with Apple among its capabilities. It does not need a real app on the App Store.
2. Create a Services ID with your domain and Return URL
- In Certificates, Identifiers & Profiles ▸ Identifiers , click +, choose Services IDs and click Continue.
-
Enter a description (your site's name: members see it on Apple's screen) and a unique identifier such as
com.example.signin, then click Register. That identifier is the Services ID you enter in SeedWebs. - Open the new Services ID, tick Sign in with Apple and click Configure. Choose the primary App ID from step 1.
-
Copy the card's Domains and Subdomains value (for example
example.com, no https) into Apple's Domains and Subdomains field, and its Return URLs value (https://your-domain/api/member/auth/callback) into Return URLs. It must match exactly. - Click Done ▸ Continue ▸ Save. (Apple's own steps: Configure Sign in with Apple for the web .)
3. Create a Sign in with Apple key
- In Certificates, Identifiers & Profiles ▸ Keys , click +, name the key, tick Sign in with Apple and set it up with the primary App ID from step 1.
-
Confirm, then click Download. The
.p8file is the private key. Keep it safe: Apple lets you download it only once. - The Key ID (10 characters) is shown below the key's name on its details page.
- The Team ID (10 characters) is in your Apple Developer account's membership details.
4. Enter the values and test the connection in SeedWebs
-
Back on the Apple card in Members ▸ Login settings ▸ Sign-in methods, enter the four values: Services ID, Team ID, Key ID and the
private key (open the
.p8file and paste all of it, theBEGINandENDlines included). - Press Test with Apple. Apple opens in a new tab: sign in there with your own Apple ID.
- When that tab says Apple connection works, the values are saved and Apple is switched on. You can close the tab. The test creates no member and signs nobody in.
- Members see the Apple button only while Members is on and member sign-in is on in Login settings. If either is off, the passed test still stands, but the button shows only once both are on.
- Only a passed test saves the Apple values. Saving the settings page does not save them, and no Apple button shows without a passed test.
- Once saved, the Services ID, Team ID and Key ID show as text and the private key stays hidden; none can be edited in place, and the Domains and Subdomains and Return URLs values stay on the card to copy. To change them, press Change values, enter the new ones and test them. The current values stay in use until the new ones pass their test, so members are never cut off.
- If the test fails, nothing is saved, and the page in that tab shows Apple's message.
| What you see | Usual cause |
|---|---|
| Apple shows an error before you can sign in | The Return URL or domain on the Services ID is not exactly the card's (a missing https, a trailing /), or the Services ID is not the identifier in Apple. |
invalid_client | The Team ID, Key ID and private key do not belong together, the key does not have Sign in with Apple, or it uses another App ID than the Services ID. |
invalid_grant | The test waited too long or was already used. Press Test with Apple again. |
user_cancelled_authorize | Cancel was pressed on Apple's page. |
5. Let your emails reach members who hide their email (Private Email Relay)
On their first sign-in a member can choose to hide their email. Your site then gets an address like …@privaterelay.appleid.com, and
the member's account is tied to it (their next sign-in finds the same account). Apple forwards mail to the member's real inbox only from senders you registered. Until you do, receipts, confirmation emails and newsletters from your site never reach these
members.
- Copy Your site's sender address from the Apple card.
- In Certificates, Identifiers & Profiles, open Services ▸ Sign in with Apple for Email Communication ▸ Configure.
- Under Email Sources, click +, enter the sender address you copied (the whole address, not just the domain), click Next, then Register. (Apple's own steps: Configure Private Email Relay Service .)
- If the sender address on the card changes (after you verify your site's email domain, for example), register the new one too.
When the domain changes or goes away
Apple is tied to the domain you tested. When the domain changes or is disconnected, or the plan no longer includes a custom domain, the Apple button disappears and members cannot sign in with Apple until you test again. There is no shared Apple account to fall back on. The card says why Apple stopped; members can still sign in with the other methods you turned on.
To use Apple again, add the new domain and Return URL (the card shows them) to the same Services ID, then press Test again on the card. The same key works; you do not need a new one.
Members
- Members are matched by email: someone who signed up before with the same email (an email code or Google) gets their existing account.
- A member who hides their email gets a new account tied to the relay address, since it matches no existing account.
- Apple sends the member's name only on their first sign-in to that Services ID; it becomes the new account's name.
- The connection test used your own Apple ID, so if you later sign in as a member with that same Apple ID, Apple sends no name and the account is named from the email address. You can change the name on the member page.
Stop using Apple
Turn Apple off in the Apple row of Sign-in methods and press Save Settings (the saved values stay), or press Remove on the Apple card, then Remove values: your site's Apple values are deleted and Apple sign-in stops at once.