
In the Return URLs box add the full return URL you want to use, e.g.You have to enter at least one domain here, even if you don't intend to use Sign in with Apple on any website. In the Domains and Subdomains add the domains of the websites on which you want to use Sign in with Apple, e.g.Check the box next to "Sign in with Apple", then click "Configure".Select the service from the list of services.Now that the service is created, we have to enable it to be used for Sign in with Apple: The "Identifier" will later be referred to as your clientID.Set your "Description" and "Identifier".Select "Services IDs", click "Continue".Go to your apple developer page then "Identifiers" and follow these steps: If you only intend to integrate iOS you can skip this step. The Service ID is only needed for a Web or Android integration. If you have change your app's capabilities, you need to fetch the updated provisioning profiles (for example via Xcode) to use the new capabilities. Check the "Sign in with Apple" capability.In case you already have an existing App ID that you want to use with Sign in with Apple: Click "Continue", and then click "Register" to finish the creation of the App ID.If you ship multiple apps that should all share the same Apple ID credentials for your users, please consult the Apple documentation on how to best set these up. Usually the default setting of "Enable as a primary App ID" should suffice here.Set the Description and Bundle ID, and select the Sign In with Apple capability.In the wizard select "App IDs", click "Continue".

If you don't have one yet, create a new one at following these steps: Sign in with Apple is one of the restricted services which is not available for free with just an Apple ID ( source).

Prerequisites #īefore you can start integrating (or even testing) Sign in with Apple you need a paid membership to the Apple Developer Program. Your server should then daily verify the session with Apple (via a refresh token it obtained on the initial validation), and revoke the session in your system if the authorization has been withdrawn on Apple's side.

Once you receive the credentials, they need to be verified with Apple's servers (to ensure that they are valid and really concern the mentioned user) and then a new session should be derived from them in your system. Integrating Sign in with Apple goes beyond just adding this plugin to your pubspec.yaml and using the credential-receiving functions exposed by it. after they have been validated with Apple (see `Integration` section for more information on how to do this) Now send the credential (especially `thorizationCode`) to your server to create a session Supports login via an Apple ID, as well as retrieving credentials saved in the user's keychain.įinal credential = await SignInWithApple.getAppleIDCredential(
