Giter VIP home page Giter VIP logo

twil's Introduction

Authenticating Users using Authy and Clearance

This is a Rails 6 application that authenticates users using Authy and Clearance

Installation.

  • Clone the Repo into a folder of your choice

    git clone https://github.com/faithngetich/demo-app.git

  • Navigate inside your newly created application's folder.

    $ cd demo-app

  • Db setup

    $ bin/rails db:migrate

  • Install dependecies.

    $ bundle

  • Start up the application.

    $ rails server

Configuring Authy

Grab your production API key from yourconsole and export it in your environment.

$ export AUTHY_API_KEY=Your Authy API Key

Setting up the webhook URL.

  • Setup and install ngrok using the official documentation.

  • Run $./ngrok http 3000

  • Add the configuration to your environment configuration in the config/environments/development.rb to allow requests to the ngrok url.

    config.file_watcher = ActiveSupport::EventedFileUpdateChecker config.hosts << "n9220399.ngrok.io"

  • Restart the server and try accessing the ngrok link.

  • Got to your app’s authy console and set webhook endpoint/URL for authy to post it’s. The URL looks something like this http://396ofdef.ngrok.io/authy/callback

twil's People

Contributors

faithngetich avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.