Apple Login

Applicationย id and secret (also sometimes referred asย Consumerย key and secret orย Client id and secret) are what we call an application credentials. This application will link your websiteย to Apple API and these credentials are needed in order for Apple users to access your website. These credentials may also differ in format, name and content depending on the social network.

To enable authentication with this provider and to register a new Apple API Application, follow the steps :

Create Apple App #

  1. Make sure you have anย active subscription for theย Apple Developer Program, as that is necessary for both creating and maintaining an Apple App!
  2. Make sure your site haveย SSL, sinceย Apple only allows HTTPS urls!
  3. Navigate toย https://developer.apple.com/account/resources/identifiers/list
  4. Log in with your Apple Developer credentials if you are not logged in.

1.) Create the associated App: #

  1. Click theย blue + iconย next to Identifiers, then select theย App IDsย option and click the “Continue” button.
  2. Choose the “App” option as type and press the “Continue” button.
  3. Enter a “Description
  4. At the “Bundle ID” field select the “Explicit” option and enter your domain name in reverse-domain name style, with the name of the app at its end:ย com.samplewebsite.slaiapp
  5. Under the “Capabilities” section, tick the “Sign In with Apple” option.
  6. Scroll up and press the “Continue” button and then the “Register” button.

2.) Create the Key: #

  1. On the left hand side, click on the “Keys” tab.
  2. Click theย blue + iconย next to Keys heading.
  3. Enter a name in theย Key Nameย field.
  4. Tick the “Sign In with Apple” option, then click on “Configure“.
  5. If you have multiple Apps, then at the “Choose a Primary App ID” fieldย select the App what you just created, then click “Save“.
  6. Finally press the “Continue” button and then the “Register” button.
  7. Don’t download the key yet!

3.) Create the Service: #

  1. Go to the “Services IDs” section, what you will find within the “Identifiers” tab.
  2. Click theย blue + iconย next to Identifiers, then select the “Services IDs” option and click the “Continue” button.
  3. Enter a “Description“.
  4. At the “Identifier” field enter your domain name in reverse-domain name style, with the name of the client at its end:ย com.samplewebsite.slaiclient
    • Note:ย This will also be used as Service Identifier later!
  5. Press the “Continue” button and then the “Register” button.
  6. In the “Services IDs” section, click the service you just created.
  7. Tick the “Sign In with Apple” option and click the “Configure” button next to it.
    1. If you have multiple Apps, then at the “Primary App ID” field select the App what you just created.
    2. Fill the “Domains and Subdomains” field with your domain name probably:ย samplewebsite.com
    3. Add the following URL to the “Return URLs” field:
  8. Click the “Next” button then press the “Done” button.
  9. Finally press the “Continue” button and then the “Save” button.

4.) Configure your credentials: #

  1. ID:
    1. Navigate to:ย https://developer.apple.com/account/resources/identifiers/list/serviceId
    2. You will find it under the “IDENTIFIER” column. If you configured the service according to the suggestions, it will probably end to .slaiclient e.g.:ย com.samplewebsite.slaiclient
  2. Team ID:
    1. A 10 character long identifier, what you can find on theย top-right corner, just under your name.
  3. Key ID:
    1. Navigate to:ย https://developer.apple.com/account/resources/authkeys/list
    2. Click on theย name of your Key.
    3. You will find your “Private Key ID” under “Key ID“.
  4. Key Content:
    1. Click the “Download” button to download the key file.ย Once this file is downloaded, it will no longer be available, soย make sure you keep this file safe!
    2. Open the downloaded fileย with a text editor, like Notepad,ย copy all of its contentsย andย paste itย into the “Key Content” field.
What are your feelings
Updated on October 2, 2023