Posts

Showing posts from 2017

How to Use Twilio Functions with the Phone Verification API

Image
Twilio Functions, a serverless environment to build and run Twilio applications, was released back in May 2017 and allows you to use Node.js code for handling communications events such as a text message, an incoming voice call or HTTP requests ensuring that you can leverage the benefits of the platform like security, no infrastructure requirements, auto-scaling, native integration with Twilio REST Helper Library in a familiar environment powered by Node (6.10.x).


We could use a simple Hello World example to show you the power of Twilio Functions but instead we are going to use the Twilio Phone Verification APIs (formerly known as Authy) to demonstrate how easy to use and simple the Twilio Functions interfaces are.

The Twilio Phone Verification API allows you to verify that a given phone number is accurate and it's in the user's possession. The Phone Verification API is absolutely simple to use, one API call to request the code to be sent to the user (SMS or Voice call) and on…

Authy 2FA Automated Testing Framework

When developing a system that provides two-factor authentication capabilities it's always nice to see things working in an unit or functional testing. But, when you need to run automated integrated tests that doesn't seem to be an easy task as it might be dependent on other factors like sending and receiving SMS messages for example.

With that in mind, we have created an extensible framework for you to test your applications being deployed with Authy OneCode and Authy Phone Verification for the delivery of the one-time passwords and tokens via SMS.
The framework can be found here and it's completely free and open source.

Some of the tasks that the 2FA Automated Testing Framework is able to help you with are:


Acquire a new Twilio Number (or use an existing one)Setup a Webhook URL for the Twilio Number to forward the SMS messages generated and delivered by Authy OneCode and/or Authy Phone Verification. You can also set the framework to poll for SMS messages on your Twilio Num…