iCloud Authentication
iCloud requires an app-specific password. The password is a requirement from Apple.
Learn More
Learn more about setting up app passwords in Nylas.
Prerequisites
- Read Hosted Authentication
- Read Native Authentication
iCloud Hosted Authentication Steps
- Have your user generate an app-specific password. They’ll need it to continue on.
- Redirect the user to the Nylas hosted login page by making a GET request to /oauth/authorize.
- Once they are directed to the Nylas hosted login page, instead of using the iCloud password, they use the app-specific password.
- Complete the authentication flow by getting access tokens based on the
response_type
.
iCloud Native Authentication Steps
- Have your user generate an app-specific password. You’ll need it to continue on.
- Create the branded page like normal.
- Make a Request to /connect/authorize and provide the app-specific password in the settings.
Example iCloud /connect/authorize Request
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"
}'
- Exchange the code as normal.