Nylas supports two forms of authentication:
Native Authentication, where the developer is responsible for building the user interface for retrieiving the appropriate credentials for a users contacts, mail and/or calendar provider. See the Nylas Native Authentication Reference Documentation for more details.
Nylas OAuth, where Nylas acts as an OAuth Provider that abstracts away the supported providers. This allows you to get up and running quickly without having to build potentially complex user interfaces for supporting any number of providers. See the Nylas OAuth Authentication Reference Documentation for more details.
Running the Example
- Clone the repository
- Install the dependencies by using
- Get a Nylas App ID and App Secret from the Nylas Dashboard
- Get a Google Cloud Platform Access Token by following the Nylas Google Setup Guide. Make sure to set the callback to
.envand set the values based upon the previous steps.
- Run the app web server:
bundle exec dotenv ruby app.rb
- Login to whichever mail, contact, and calendaring providers you want using the different authentication mechanisms.