To enable Sign in with Apple, you need an Apple Developer account and must configure an App ID and Service ID in the Apple Developer Portal.
1. Create an App ID
- Go to Certificates, Identifiers & Profiles > Identifiers.
- Add a new App ID (type: App).
- Enter a description and unique bundle ID.
- Enable "Sign in with Apple".
- Register the App ID.
2. Create a Service ID
- Add a new identifier (type: Services ID).
- Enter a description (shown to users) and a unique identifier (used in Bare.ID).
- Register the Service ID.
3. Configure Sign in with Apple
- Open your Service ID and enable "Sign in with Apple".
- Select your App ID.
- Add your Bare.ID domain (e.g., example.com) and the authenticator’s redirect URI as the Return URL.
- Save the configuration.
4. Generate a Private Key
- In Certificates, Identifiers & Profiles, go to Keys.
- Create a new key with "Sign in with Apple" enabled.
- Select your App ID.
- Register and download the key. Note the generated Key ID.
5. Provider Configuration
- Team ID: Found in the Apple Developer Portal.
- Client ID: The Service ID identifier.
- Key: The downloaded private key.
- Key ID: The Key ID from the previous step.
- When users sign in with Apple, they choose what data to share. The authentication response always includes a persistent, obfuscated user ID.