Sign in with Apple through Zitadel

Sign in with Apple through Zitadel is set up as an identity provider on Zitadel, with Apple configured through a services ID, a signing key and a return URL. This page covers what the work involves, what to decide first and where linking goes wrong.

On this page

How Sign in with Apple works through Zitadel

Your app already authenticates with Zitadel, and the business wants Apple as a login option. Zitadel lists Apple among the providers it can federate with, so Zitadel brokers the Apple login. The app keeps one token format and one user record, and Apple becomes an upstream identity provider that Zitadel trusts. The supported method is OpenID Connect federation with Apple, which means Zitadel acts as the relying party toward Apple and your application never talks to Apple directly.

The work is split across two systems. On the Apple side, the team creates a services ID that identifies Zitadel as the client, enables Sign in with Apple for it, registers the return URL that Zitadel gives you, and generates a private key used to sign the client secret. On the Zitadel side, the team adds Apple as an identity provider at instance or organization level, enters the services ID, key identifier, team identifier and private key, and decides whether a first Apple login creates a new user or links to an existing one. Confirm the exact field names and the current client secret rules in the Zitadel Apple provider documentation and in Apple's developer portal before you start, since both change over time.

This page covers three decisions in order: how to create and store the services ID and key, how private relay email addresses affect the user record, and how to link Apple identities to users who already exist. Apple may return a relay address instead of the real mailbox, and it returns the user's name only on the first authorization, so plan for both before go-live. Treat the relay address as a valid but unverified contact and decide early which claim your application uses as the stable user key.

What you need before configuring Apple in Zitadel

Sign in with Apple depends on several pieces lining up before any Apple setting is saved. The Zitadel instance, its database, its public domain and your Apple Developer access all have to be ready, and the domain has to be fixed first because Apple registers it and the return URL against your services ID.

A chosen and tested Zitadel release

Pick the Zitadel version your team will run and test it in a non-production environment before adding Apple. Confirm the current release on the Zitadel releases page, since the version you deploy determines the console screens and identity provider options your team will follow. Record the exact version so later upgrades don't change the Apple steps unexpectedly.

Zitadel releases

A supported PostgreSQL database

Zitadel stores its state in PostgreSQL, and the supported range is versions 14 through 18. Confirm that your database version falls in that range and that the instance has backups in place before you change identity provider settings. A restore point makes it easier to undo a misconfigured provider without losing users or links.

Supported PostgreSQL versions
14 to 18
Database requirements

A fixed public HTTPS domain

Apple redirects users back to a return URL on your domain, so the Zitadel domain must be final before you register anything with Apple. Changing it later means updating the services ID, the return URL and any stored provider configuration. Confirm that the certificate is valid, trusted by public clients and covers the exact host name you will use.

Apple Developer account access

Creating the services ID, the private key and the return URL requires a role in your Apple Developer account that can manage identifiers and keys. Confirm with the account holder who will own these credentials, because Apple keys are tied to the team account and must be stored and rotated under your control. Without this access, the Apple steps cannot start.

Application redirect and callback URLs

List every application that will offer Sign in with Apple and the exact callback URLs each one uses through Zitadel. Each application's redirect must match what Zitadel expects, and the return URL registered with Apple must point to Zitadel's own endpoint rather than the application. Write these down before setup so mismatches are caught in planning, not during a failed login.

How the Apple login request moves through Zitadel

The flow starts when a user chooses sign in in the client application, which sends an authorization request to Zitadel. Zitadel redirects the browser to Apple, where the user authenticates. Apple returns the authorization response to the Zitadel callback. Zitadel then validates the Apple token, creates or links the local user, and issues its own tokens to the application. The boxed area marks the systems you operate. Apple sits outside it, so review the token validation and account linking steps closely before go-live.

Login hand-offs between the application, Zitadel and Apple, with the trust boundary marked.

Where to configure the Apple provider: instance or organization

An Apple provider configured at instance level is shared by every organization in that instance. One set of Apple values, including the services ID and the private key, serves all users who sign in through the instance. This suits a product where every tenant is expected to offer the same Apple sign-in and where one team owns the Apple developer account.

  • Administration: One provider object is created and maintained by instance administrators, so there is a single place to review settings.
  • Key changes: Rotating the Apple private key is a single change, but it takes effect for every organization at once, so the rotation must be planned across all tenants.
  • Login page: Every organization sees the same Apple button unless the login policy hides it, which keeps the experience consistent.
  • Blast radius: A misconfigured or revoked key affects all tenants that use Apple sign-in.

Before choosing this scope, confirm in the Zitadel identity provider documentation how instance-level providers are made available to organizations and whether any per-organization filtering applies.

How to configure Sign in with Apple in Zitadel, step by step

This sequence takes you from an Apple Developer setup to a working Sign in with Apple option in Zitadel, with a check at each stage so that a failed login points to one specific setting. Follow it in order, because each step produces a value the next one needs.

  1. Create the App ID and services ID in Apple

    In the Apple Developer portal, a team account holder or admin creates an App ID with the Sign in with Apple capability enabled, then creates a services ID that will act as the OAuth client identifier for Zitadel. Record the services ID exactly as Apple displays it, since you will enter it in Zitadel later. The step is done when the services ID appears in the portal with Sign in with Apple enabled and linked to the App ID. Confirm the exact menu names and capability labels in Apple's current developer documentation, because the portal changes over time.

  2. Configure the domain and return URL

    On the services ID, register the domain where your Zitadel instance is reachable and add the return URL that matches the callback endpoint Zitadel shows for its Apple identity provider. Apple only redirects to URLs it has been given, so any mismatch in scheme, host or path will stop the login before it reaches Zitadel. Check that the callback resolves over HTTPS from a public network, with a valid certificate chain. Confirm the exact callback path in the Zitadel documentation for identity providers before you save it in Apple.

  3. Generate the signing key and record identifiers

    Create a Sign in with Apple key under the Keys section of the portal, associated with the App ID. Apple lets you download the private key file once, so store it in your secrets manager immediately. Record the key identifier shown for the key and your team identifier from the account membership details. The step is done when you hold the downloaded .p8 private key and have written down the key identifier, team identifier and services ID in one place. Keep the private key out of source control and out of tickets.

  4. Create the Apple identity provider in Zitadel

    In Zitadel, create an Apple identity provider at the scope you chose, either instance level for all organizations or organization level for one customer. Enter the services ID as the client identifier, the team identifier, the key identifier and the contents of the private key. Save the provider and confirm it appears in the list with the expected scope. Field names differ between Zitadel versions, so verify each label against the Zitadel documentation for the version you run before you fill in the form.

  5. Enable the provider in the login policy

    Add the Apple provider to the login policy at the same scope as the provider, so the login page offers it to users. If you set the policy at instance level and the provider at organization level, confirm that the organization inherits the setting you expect. Open the hosted login page in a private browser window and check that the Apple option appears for the organization you are testing. Login policy options change between releases, so confirm the controls in the current documentation.

  6. Test with a non-production user

    Sign in with a test Apple ID through the hosted login page and complete the Apple consent screen. Then open the resulting user in the Zitadel console and confirm that an external identity linked to Apple exists, with the subject identifier Apple returned for that account. Repeat the test with the option to hide the email address selected, to confirm that a private relay address is handled as you intended. The step is done when the login completes, the user record carries the Apple identifier and the email value matches your policy.

Which Apple identity data maps to which Zitadel user fields

This table compares each identity item Apple returns after Sign in with Apple with how it should be stored in Zitadel and who decides the mapping. Read the subject identifier row first, because it is the field to rely on for linking, and treat the email and name rows as profile data that can change or appear only once. Confirm the current claim list in Apple's documentation before you finalize the mapping.

Apple response itemZitadel useTeam decision
Subject identifier (sub)Store as the external user ID for the Apple identity link. This is the key that ties an Apple account to one Zitadel user.Agree who owns the link record and confirm the value is stable per Apple developer team before any production linking.
Email addressPrefill the profile email on first login and display it to users. Do not use it as the primary link key.Decide whether a matching email may trigger a linking prompt or whether users must confirm linking with an existing login.
Email verified flagUse only as a signal when deciding whether a matching email can be trusted for automatic linking.Set a policy for unverified or missing emails, and confirm how Apple marks verification for each case in Apple's documentation.
Private relay flagRecord that the address is an Apple private relay address, which forwards mail to the user's real inbox.Decide whether relay addresses are accepted for account recovery, notifications and domain-based routing.
Name data (first authorization only)Store the given and family name once, at the first successful authorization, in the Zitadel profile.Plan for missing names on later logins and let users complete or correct their profile in Zitadel.
Email change over timeRefresh the profile email only through a deliberate update rule, since the address can differ from the one stored earlier.Define who may change a stored email and how changes are audited.

Private relay addresses and linking Apple identities to existing users

The linking rule is the decision that matters most in this section, and the team should settle it before go-live. When a user chooses Hide My Email, Apple gives the app a private relay address instead of the real mailbox. An email match between that relay address and an existing Zitadel user will either fail, creating a second account the user did not expect, or succeed against the wrong record if the address happens to match something unrelated. Before writing any rule, check what Apple returns for each login in your own test tenant, including whether the email claim is present on repeat logins, since Apple only sends certain profile data on first authorization. Confirm these details against Apple's current documentation rather than assumptions carried over from other providers.

There are three workable options, and each suits a different user base. The first is to create a new account on first Apple login, which is simple but produces duplicates for anyone who already has a password account. The second is to send an existing user through a prompt after signing in with their password, so they explicitly confirm the link. This is the safest option for established accounts, because the link is made by the user who owns both identities. The third is to match only on verified addresses the team controls, which works when your organization owns the domain and has verified it in Zitadel, but gives nothing to users who only have a relay address. For users who already have accounts from Google, GitHub or an enterprise provider, decide whether Apple should attach to that same record or stay separate, and document how a user recovers if they lose access to one provider.

Account linking is a separate design decision with its own rules for conflicts, fallback to local login, audit trail and duplicate prevention, and the Apple rule should follow that design rather than define it. Write down who may link, what evidence is required, what happens when the same Apple identity appears under two users, and how support staff handle a request to merge records. Keep the decision in a document that the security and support teams both sign off on, because it determines what a support agent can change and what the audit log will show later.

Security settings for the Apple private key and the login flow

Sign in with Apple adds a credential that signs client secrets, a redirect list that Apple must match exactly, and relay addresses that look like email but may not behave like it. The controls below cover who can touch the key and provider, how the key rotates, which redirects are allowed, how relay email is handled, and what gets logged. Confirm each one against your own environment before go-live.

Store the Apple private key in a secrets manager

The Apple private key signs the client secret that Zitadel presents to Apple, so anyone holding it can impersonate your login integration. Keep the .p8 file in the secrets manager your platform team already operates, not in a repository, ticket or shared drive. Confirm which Zitadel administrators can read or replace the provider secret, and whether those roles are separate from people who can edit the Apple developer account.

Plan and rehearse key rotation

Apple private keys can be revoked or replaced, and a provider change that works in one instance can fail silently in production. Write a rotation runbook that creates the new key, updates the Zitadel provider, and retires the old key in a fixed order. Rehearse the full sequence in a non-production Zitadel instance before the old key expires, and confirm with your Apple developer account owner who receives expiry and revocation notices.

Limit who can edit the provider

Changing the Apple services ID, team identifier or key in Zitadel alters which users can sign in and where tokens are sent. Restrict provider edits to a named group at instance level, and decide whether organization administrators may configure Apple for their own organization at all. Ask the team to confirm that role assignments are reviewed on the same schedule as other identity provider settings.

Keep the redirect URI list exact

Apple checks the return URL against the services ID configuration, and an overly broad entry widens where authorization codes can be sent. Register each Zitadel callback URL explicitly, with the correct host and path, and avoid wildcards or unused legacy domains. Confirm that every entry corresponds to a live instance or organization domain and remove entries left from testing.

Treat relay email as personal data

Users who choose Hide My Email receive a relay address, which can appear in Zitadel user profiles, exports and support tickets. Apply the same retention period, access rules and deletion steps to relay addresses that you apply to any other email address. Confirm with your privacy or legal team how relay addresses are described in your privacy notice and whether your application needs them to reach users at all.

Log provider changes and failed logins

An audit trail should show who changed the Apple provider, when the key was replaced and which logins failed at Apple, with enough detail to investigate a spike. Decide where Zitadel and your platform logs are sent, who can read them, and how long they are kept. Confirm that failed Apple logins are captured without storing the authorization code, identity token or key material.

Zitadel identity providers

Common Apple login failures in Zitadel and how to fix them

This table lists the failures most often seen when Sign in with Apple runs through Zitadel, with the likely cause and a specific check for each. Work down the symptom column, confirm the cause in your Apple and Zitadel settings, and apply the fix before changing anything else.

SymptomLikely causeFix
Apple authorization page reports an invalid return URLThe redirect URI registered on the Apple services ID does not exactly match the callback URL Zitadel sends, usually in domain, scheme or path.Compare the redirect URI on the Apple services ID with the callback shown in the Zitadel Apple provider settings. Match scheme, host and path character for character, then retest in a private browser window.
Login succeeds but a duplicate user appearsThe Apple relay address or Apple user identifier differs from the address on the existing account, so Zitadel creates a new user instead of linking.Look up the existing user's verified email and the Apple identity on the user's linked identity providers. Link the Apple identity to the existing user from the console, then check that a second login reuses that user.
Email is missing on later loginsApple returns the name and email only on the first authorization for a given user and services ID, so later logins carry no email claim.Check the first-login event for the email claim. If it was missed, have the user revoke the app under their Apple ID settings and sign in again, and make sure your mapping does not require email on every login.
Apple login stops working after the key is rotatedThe Apple key identifier or private key in Zitadel still refers to the old key, or the old key was revoked before the new one was added.Confirm the key ID and team ID in the Zitadel Apple provider match the key shown in your Apple developer account. Remove or disable the old key only after a successful test login with the new one.
Apple works in one organization but not anotherThe Apple provider is configured at instance level only, or the organization's identity provider settings and policy do not enable it for that organization.In each affected organization, open the identity provider settings and confirm Apple is listed and enabled there. Test with a user from that organization after saving.
Login page does not show the Apple buttonThe Apple provider exists but was not added to the active login policy for the instance or organization.Open the login policy for the scope in question and confirm the Apple provider is in the allowed identity providers list. Reload the login page in a fresh session to verify.

Questions teams ask before adding Sign in with Apple to Zitadel

What drives the cost of adding Sign in with Apple to Zitadel?

The cost follows the written scope, and four factors move it most: the number of applications that need Apple sign-in, whether the login is set at instance or organization level, how complex the account linking rules are, and how far along the Apple Developer setup already is. Each application needs its own client configuration and testing, so a larger application count adds work at the same rate. A clean Apple Developer account with a services ID, key and verified domain ready to use shortens the engagement. Organization-level setups usually take more design time than one instance-wide provider. Ask any partner for a quote that lists these items separately, along with what is one-time setup and what the client keeps running afterward. DeployOpen agrees scope, deliverables and timelines in writing before work starts, and quotes from that written scope.

How long does Sign in with Apple configuration take in Zitadel?

Duration depends less on Zitadel itself than on how quickly the inputs are available. The usual slow points are getting access to the Apple Developer account, confirming the domain that Apple will redirect to is ready and reachable over HTTPS, and agreeing on linking decisions before configuration begins. If the Apple account owner must approve a new key or services ID, that approval adds waiting time that no engineer can shorten. Once the inputs are settled, the build is mostly provider setup, login policy configuration, test sign-ins and checking the linked accounts. Ask for a timeline that names which steps depend on the client, such as Apple account access and domain changes, so both sides know which delays are theirs.

What must our team provide before the engagement starts?

Three inputs are needed before work begins. First, an Apple Developer account owner who can create and manage the services ID, the sign-in key and the return URL configuration, and who can approve changes. Second, the final Zitadel domain that the applications and Apple will use, because changing it later affects redirect settings. Third, a written linking policy that states whether a new Apple sign-in creates an account, links to an existing user by verified email, or asks the user to confirm the link. You should also name test users who hold accounts in each state, including users who hide their email through private relay. Without these, the engagement stalls at the design step rather than the build step.

Can our internal team set up Sign in with Apple through Zitadel alone?

Yes, a team can do it alone if it has access to the Apple Developer account and staff who administer Zitadel, including instance and organization settings and identity provider configuration. The step that most often lacks internal experience is linking design. Teams know how the provider works, but deciding how an Apple identity maps to an existing user, what happens when the email is private relay, and how to avoid duplicate accounts takes careful planning and testing. Many internal teams find that gap the hardest part. A practical split is to handle Apple account access and Zitadel administration internally and bring in outside help for the linking design, the test matrix and the handover. The Zitadel documentation on identity providers is the right starting point for the team's own review.

Does the Zitadel license or plan change the Apple login work?

The sign-in work is the same under the current Zitadel plans, because the identity provider configuration, redirect settings and linking logic apply to self-hosted and cloud deployments alike. The plan or license question matters for what you run and who supports it. Zitadel moved its core, Console and hosted login to AGPL 3.0 with v3.0, while APIs, SDKs and documentation remain Apache 2.0, so check with counsel how that applies to your use. For plan features, pricing and support terms, read the Zitadel pricing page and the Zitadel buyer's guide, and confirm with Zitadel which options apply to your deployment before you scope the work.

How do we ask for a fixed-scope quote for this work?

Send a short written brief that lists the applications that need Apple sign-in, the target Zitadel instance and organizations, the current state of your Apple Developer setup, your linking policy or the questions you need answered, the number of test users and environments, and the handover you expect. Ask the provider to state the deliverables, the assumptions about client-side inputs, the testing included and what is excluded, such as later changes to Apple settings. DeployOpen works from a written scope, agreed in writing before work starts, and it does not publish a price list, so the quote comes from that scope. Ask whether ongoing support is covered separately, since upkeep after launch is a recurring cost.

How DeployOpen scopes and delivers Sign in with Apple for Zitadel

DeployOpen plans, implements, documents and supports Sign in with Apple through Zitadel inside your own infrastructure. The work is agreed as a fixed scope in writing before it starts, and it is delivered against your Zitadel instance, your Apple Developer setup and your existing user base.

How we scope

  • Confirm which apps, Zitadel organizations and instances will offer Sign in with Apple and which Apple identifiers they use.
  • Record the Apple services ID, key handling, return URL and private relay decisions in the written scope before work starts.
  • Agree how existing users will be linked to Apple identities, including any users who sign in with relay addresses.

How we build

  • Configure the Apple identity provider in Zitadel at the level the scope names, instance or organization, with the agreed client settings.
  • Test sign-in, first-time Apple login, repeat login, and cancelled or denied consent paths in a non-production environment.
  • Verify account linking behavior against a set of test users, including relay email addresses and accounts with an existing local password.

How we hand over

  • Deliver configuration notes covering the Apple setup, Zitadel provider settings, redirect URIs and secret rotation steps.
  • Document the linking rules, the fallback to local login and the runbook for users who report sign-in problems.
  • Walk your administrators through the configuration so your team can operate and change it after handover.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, covering Apple configuration changes and Zitadel version updates.
  • Re-test sign-in flows after each Zitadel upgrade or change to Apple developer credentials that the retainer covers.
  • Ask for the support terms, response expectations and change process in the written quote before you commit.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.