Only show these results:

iCloud authentication

Apple requires an app-specific password when you authenticate iCloud accounts. Learn more about setting up app passwords in Nylas.

Before you begin

Before you start authenticating iCloud accounts, read the Nylas Hosted auth and Native auth documentation.

iCloud Hosted authentication

To authenticate your end users' iCloud accounts using Hosted auth, follow these steps:

  1. Have your end user generate an app-specific password. They need it to continue.
  2. Redirect the end user to the Nylas Hosted auth login page by making a GET /oauth/authorize request.
  3. Have the end user log in using their iCloud account and the app-specific password from step 1.
  4. Complete the auth flow by getting the end user's access tokens based on the response_type.

iCloud Native authentication

To authenticate your end users' iCloud accounts using Native auth, follow these steps:

  1. Have your end user generate an app-specific password. They need it to continue.

  2. Create a branded page as you normally would.

  3. Make an authorization request and provide the end user's app-specific password in the settings.

    curl -X POST https://api.nylas.com/connect/authorize -d '{
    "client_id": "<NYLAS_CLIENT_ID>",
    "name": "Nyla the Cheetah",
    "email_address": "[email protected]",
    "provider": "icloud",
    "settings": {
    "password": "app-specific-password"
    },
    "scopes": "email.read_only,calendar.read_only,contacts.read_only"
    }'
  4. Exchange the code as you normally would.