Prerequisites
- An Apple Developer account
- An App ID registered for your application
Configure Apple OAuth
1
Register an App ID
If you don’t already have an App ID for your application:
- Go to the Apple Developer Portal
- Click Identifiers > + to register a new identifier
- Select App IDs and click Continue
- Select App as the type and click Continue
- Enter a description and a Bundle ID (e.g.
com.yourapp) - Under Capabilities, enable Sign in with Apple
- Click Register
2
Create a Services ID
The Services ID is used as the
client_id when configuring the OAuth provider.- Go to the Apple Developer Portal
- Click Identifiers > + to register a new identifier
- Select Services IDs and click Continue
- Enter a description (e.g. “Prelude Auth”) and an identifier (e.g.
com.yourapp.session) — this identifier will be yourclient_id - Click Register
3
Configure Sign in with Apple
- Click on the newly created Services ID
- Enable Sign in with Apple and click Configure
- Select the App ID you created in the first step as the Primary App ID
- Under Domains and Subdomains, add your custom domain (e.g.
session.yourapp.com) - Under Return URLs, add:
${YOUR_CUSTOM_DOMAIN} with your custom domain.- Click Save and then Continue > Register
The return URL must match exactly. Make sure there is no trailing slash and that you are using
https.4
Create a private key
Apple does not provide a client secret directly. Instead, you create a private key that Prelude uses to generate the client secret automatically.
- Go to Keys in the Apple Developer Portal
- Click + to create a new key
- Give it a name and enable Sign in with Apple
- Click Configure and select the App ID you created in the first step
- Click Save, then Continue, then Register
- Download the
.p8private key file — you can only download it once - Note the Key ID displayed on the page — you will need it in the next step
5
Create the Apple OAuth configuration