Logging in with Apple
Members log in with their Apple Account, the one they use on their iPhone or Mac. Setting it up takes about fifteen minutes: three things in the Apple Developer account, their keys in Poly Community, turning it on, then a test.
You need:
- A membership of the Apple Developer Program, which Apple charges for once a year. A free Apple Account cannot make the keys.
- Your site on https, on its own domain. Apple sends members back only to https addresses with a domain name, never to an IP address or to localhost.
How single sign-on works for every provider, and what each setting does, is on Single sign-on.
1. Copy the domain and the return URL
- In WordPress, go to Poly Community → Settings → Services → Single sign-on.
- Press Set up on the Apple row.
- The dialog shows the Domain of your site, such as
example.com, and the Return URL, such ashttps://example.com/wp-json/wordplus/v1/sso/back. Apple asks for each in its own field. Copy them with their Copy buttons when the steps below ask for them.
Leave the dialog open. Make the app in it opens the Apple Developer account.
2. Make an App ID
Apple ties sign-in for a website to an App ID, and shows its name to members when they log in. You do not need an app in the App Store for it.
-
Open Certificates, Identifiers & Profiles in your Apple Developer account and go to Identifiers.
-
Press the + button, choose App IDs, press Continue, choose App and press Continue.
-
For Description, enter the name of your community. Apple shows this name on its sign-in screen, as in "Create an account for Riverside Community".
-
For Bundle ID, keep Explicit and enter a name in reverse domain order, such as
com.example.community. -
Under Capabilities, tick Sign In with Apple and press Configure beside it. Keep Enable as a primary App ID. Leave the Server-to-Server Notification Endpoint empty: Poly Community does not use it. Press Save.

Apple Developer → Identifiers → the App ID → Sign In with Apple → Configure -
Press Continue, then Register.
3. Make a Services ID
The Services ID is the identifier of your website, and the one Poly Community sends to Apple.
-
In Identifiers, press + again, choose Services IDs and press Continue.
-
Enter a Description, such as the name of your community, and an Identifier that differs from the Bundle ID, such as
com.example.community.signin. Press Continue, then Register.
Apple Developer → Identifiers → + → Services IDs -
Open the Services ID you made from the list. If the list shows only App IDs, switch its menu from App IDs to Services IDs.
-
Tick Sign In with Apple and press Configure.
-
Primary App ID is the App ID from step 2. Paste the Domain from the dialog in WordPress under Domains and Subdomains, and the Return URL under Return URLs. Both have to match exactly.

Apple Developer → the Services ID → Sign In with Apple → Configure -
Press Next, then Done, then Continue, then Save.
Apple does not ask you to put a file on your site to prove the domain is yours.
4. Make a key
The key lets your site prove to Apple that it is yours. Poly Community signs a short note with it at each login.
-
Go to Keys and press +.
-
Give the key a Key Name, such as the name of your community. Apple allows letters, numbers and spaces only.
-
Tick Sign in with Apple and press Configure beside it. Choose the App ID from step 2 as the Primary App ID and press Save.

Apple Developer → Keys → + → Sign in with Apple → Configure -
Press Continue, then Register.
-
Press Download. Your browser saves a file named like
AuthKey_K1L2M3N4P5.p8. Apple lets you download it only this once, so keep it somewhere safe. -
The page shows the Key ID, ten letters and numbers. You can see it later on the page of the key, under Keys.

Apple Developer → Keys → the key
Each App ID can have two keys. If a key is lost or someone else saw it, make a new one, enter it in WordPress, then press Revoke on the old one.
5. Enter them in WordPress
-
Back in the dialog in WordPress, fill in:
- Services ID: the identifier from step 3, such as
com.example.community.signin, not its description. - Team ID: ten letters and numbers. It is under Membership details in your Apple Developer account, and after your team name at the top of Certificates, Identifiers & Profiles.
- Key ID: from step 4.
- Private key: open the
.p8file in a text editor and paste all of it, with itsBEGIN PRIVATE KEYandEND PRIVATE KEYlines. Poly Community keeps it sealed to your site.

Settings → Services → Single sign-on → Apple - Services ID: the identifier from step 3, such as
-
Decide who may use it with Let new people join with it, as for any provider. See Let new people join with it.
-
Press Save the provider. Poly Community refuses a private key that is not the whole
.p8file. The Apple row now says Set up and Off: members do not see it yet.
6. Turn it on
- Press Turn it on on the Apple row, which opens Settings → Joining → Logging in.
- Turn Apple on with its switch, and press Save changes.
Continue with Apple now shows on the login form of the community and on the WordPress login screen, in black as Apple asks, or in white on a dark page. With Let new people join with it on, it shows on the sign-up forms too.

7. Try it
- In a private window, open the login page of your site and press Continue with Apple.
- Safari on a Mac, iPhone or iPad shows a sheet of the system, with Touch ID or Face ID. Other browsers show the Apple sign-in page, with the password of the Apple Account and its code.
- The first time, Apple asks what to share: the name, and either the real email address (Share My Email) or a hidden one (Hide My Email).
- You are back on your site. A member is logged in, someone new is on the sign-up form, and anything else lands on the login page with a line that says why.
To try it with your own account, log in with your password, open your account settings, and press Connect beside Apple under Connected accounts. From then on Continue with Apple logs you straight in, whichever email you chose.
Members who hide their email address
With Hide My Email, Apple gives your site an address of its own, ending in @privaterelay.appleid.com, and forwards what is sent there to the real address of the member. Apple confirms it, so Poly Community takes it as confirmed.
-
It matches no account. Someone who already has an account here and hides their address cannot be matched to it. With Let new people join with it on, they get a new account. To use Apple with the account they have, they log in another way and connect Apple from their account settings.
-
Email from your site has to be registered with Apple, or Apple sends it back and the member never gets it. In your Apple Developer account, go to Services, press Configure under Sign in with Apple for Email Communication, then + beside Email Sources. Enter the domain your site sends email from, or the address itself, and press Next and Register. Email sent there has to pass SPF, DKIM, or best both, for the server that sends it, as Apple asks of every email source.

Apple Developer → Services → Sign in with Apple for Email Communication -
Apple passes on up to 100 emails a day to each hidden address.
What Apple gives your site
The ID of the Apple Account, the email address, real or hidden, and the name. Apple sends the name only the first time a member uses Apple with your site, and from the browser, not in its signed answer. If that first time did not end in an account, for example when someone left the sign-up form, Apple does not send the name again, and the member types it on the sign-up form. Apple gives no picture.
When something goes wrong
Apple says invalid_client
Apple shows invalid_client and Invalid client. instead of its sign-in. The Services ID in WordPress is not the identifier of a Services ID with Sign in with Apple. Enter the identifier, such as com.example.community.signin, not its description, and check that Sign In with Apple is ticked on it.
Apple says Invalid web redirect url
Apple shows invalid_request and Invalid web redirect url. The Return URL in the dialog in WordPress is not one of the Return URLs of the Services ID. Open the Services ID in your Apple Developer account, press Configure beside Sign In with Apple, and paste it again with nothing added or left out: the same https, the same www or none.
The login comes back with "Apple could not be reached, or its answer could not be checked"
Apple did not take the keys of your site: the Team ID, the Key ID or the Private key is wrong, or the key was revoked. Services → Single sign-on shows the failure with the words of Apple, such as invalid_client. Enter the three again, from the pages named in steps 4 and 5. A revoked key cannot be used again: make a new one.
Anything else
A Forbidden page from your host right after Apple, a login that always says it took too long, or a button that does not show: these happen with every provider and are on Common problems. Apple posts its answer to your site, so a firewall rule on posted fields can catch it.