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.
Create a free Twilio account and access the Authy dashboard.
You can follow the step by step guide provided here.
Each one of these scripts is designed to run independently and perform the designated functionality specified on the file name.
-
First clone this repository and
cd
into it$ git clone git@github.com:AuthySE/Authy-OneTouch.git $ cd Authy-OneTouch
-
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.
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.
-
User Registration - userRegistration.sh
-
Create OneTouch Approval Request - OneTouch_createApprovalRequest.sh
-
Check OneTouch Request Status - OneTouch_checkRequestStatus.sh
- No warranty expressed or implied. Software is as is.
- Apache License
- Lovingly crafted by Authy Solutions Architecture Team.