SignalWire's multi-factor authentication API provides a simple and secure flow to request and verify tokens via REST HTTP calls.
This application implements a simple flow to showcase how the API operates.
Clone the codebase for this repo from SignalWire's GitHub.
Start by copying the
env.example file to a file named
.env, and fill in the necessary information.
The application needs a SignalWire API token. You can sign up here, then put the Project ID and Token in the
.env file as
SIGNALWIRE_PROJECT_KEY, together with you full SignalWire Space URL as
If you sign up for the first time, your account will be start in trial mode, which you can exit by making a manual top up of $5.00. You can find more information on the Trial Mode resource page.
If you are running the application with Ruby on your computer, run
bundle install followed by
bundle exec ruby app.rb after configuring the
To use the bundled Docker configuration, set up your
.env, build the container using
docker build . -t mfaruby then run the application with
docker run -it --rm -p 4567:4567 --name mfaruby --env-file .env mfaruby.
After starting the process with either of the two methods, head to
If you would like to test this example out, you can create a SignalWire account and space here.
Please feel free to reach out to us on our Community Slack or create a Support ticket if you need guidance!
Updated 4 days ago
Check out the full code on our SignalWire Github Repo!