Skip to content

AuthySE/Authy-OneTouch

Repository files navigation

Two-Factor Authentication with Authy REST APIs

Here you will learn how to use the Authy REST APIs to perform the user registration, create a OneTouch approval request and check the status of a OneTouch transaction.

Learn more about the Authy REST APIs.

Quickstart

Create a Twilio account

Create a free Twilio account and access the Authy dashboard.

You can follow the step by step guide provided here.

Setup the environment

Each one of these scripts is designed to run independently and perform the designated functionality specified on the file name.

  1. First clone this repository and cd into it

    $ git clone git@github.com:AuthySE/Authy-OneTouch.git
    $ cd Authy-OneTouch
  2. Update the demo.env with your user/environment/API information and then load the variables into your environment. If you are using a UNIX operating system, just use the source command to load the variables into your environment.

    $ source demo.env

    If you are using a different operating system, make sure that all the variables from the demo.env file are loaded into your environment.

Run the sample scripts

Before you run any of the following scripts, make sure you have execution permissions based on your operating system.

I'd recommend you to take a look at the API docs for TOTP - Enabling Two Factor Authentication for a User and the Authy OneTouch to get a good understading about what the following scripts do and how they work.

  1. User Registration - userRegistration.sh

  2. Create OneTouch Approval Request - OneTouch_createApprovalRequest.sh

  3. Check OneTouch Request Status - OneTouch_checkRequestStatus.sh

Meta

  • No warranty expressed or implied. Software is as is.
  • Apache License
  • Lovingly crafted by Authy Solutions Architecture Team.

Releases

No releases published

Packages

No packages published

Languages