Twilio's Authy API is the fastest way to add a second factor of authentication to your web application. Tacking something you have to the something you know of a password provides a huge step up in security while minimizing the disruption for your users.
Here we've collected two-factor authentication quickstarts in various web programming languages. In each, we'll guide you down the fastest path to two-factor while incorporating security and programming language best practices.
Our web programming language quickstarts build out our example application which incorporates Two-factor Authentication across four channels: SMS, voice, soft token, and push authentication. Note that soft token and push authentication demos will require the Authy app.
- Node.js Two-factor Authentication Quickstart
- Java (Servlets) Two-factor Authentication Quickstart
- Java (Spring) Two-factor Authentication Quickstart
- Ruby on Rails Two-factor Authentication Quickstart
- Python (Django) Two-factor Authentication Quickstart
- Python (Flask) Two-factor Authentication Quickstart
- PHP (Laravel) Two-factor Authentication Quickstart
- .NET Core C# Two-factor Authentication Quickstart
Our Authenticator SDK allows you to easily build your own two-factor authentication client for iOS or Android. It facilitates easily adding time based one-time-password (TOTP) or push authentication support in your own mobile app.
These quickstarts no longer reflect all of our suggested best two-factor practices but are still useful demonstrations of a two-factor implementation. They are kept here for posterity - please use the quickstarts above first.
- Classic Quickstart for OneTouch Two-factor Authentication in Ruby
- Classic Quickstart for TOTP Two-factor Authentication in Ruby
Got two-factor properly protecting your quickstart app? If you followed the two-factor authentication quickstart, the app also added features for phone verification. If you haven't yet, try the Phone Verification quickstart next.
We've also got a large collection of Guides and Tutorials with example Two-factor Authentication applications along with code for other Twilio Communication and Account Security products. You can find a detailed description of all of the concepts and code in our Authy API Reference.