DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. DevOps and CI/CD
  4. About the Authy 2FA Automated Testing Framework

About the Authy 2FA Automated Testing Framework

Testing the two-factor authentication functionality of your system is just as important in testing any other part. The Authy 2FA framework can help automate that testing.

Marcelo Jabali user avatar by
Marcelo Jabali
·
Feb. 21, 17 · Opinion
Like (1)
Save
Tweet
Share
5.81K Views

Join the DZone community and get the full member experience.

Join For Free

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

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. 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).

  • Set up 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 number.

  • Register the Twilio phone number and create a new user with the Authy service.

  • Use the Authy One Code and/or Authy Phone Verification API to trigger an SMS message delivery to the Twilio Number.

  • Validate the received SMS message payload with the Authy OneCode and/or Authy Phone Verification APIs.

  • Report if the token provided is valid or not.

  • Release the Twilio phone number and remove the Authy user depending on how you configure the framework.

So, if you need to test your 2FA application using Authy OneCode or Authy Phone Verification in an automated fashion, this framework is for you.

Download or clone it from here and start testing!

Automated Testing Framework Framework

Published at DZone with permission of Marcelo Jabali, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • How to Submit a Post to DZone
  • How To Check Docker Images for Vulnerabilities
  • A Brief Overview of the Spring Cloud Framework
  • API Design Patterns Review

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: