Coder Social home page Coder Social logo

arnabkumarroy / account-verification-servlets Goto Github PK

View Code? Open in Web Editor NEW

This project forked from twiliodeved/account-verification-servlets

0.0 2.0 0.0 1.4 MB

Authy Account Verification sample app implemented in Java | Servlets

Home Page: https://www.twilio.com/docs/tutorials/walkthrough/account-verification/java/servlets

Java 95.26% CSS 1.71% HTML 3.03%

account-verification-servlets's Introduction

Account Verification with Servlets and Twilio

Build Status

When a new user signs up for your application, you want to make sure their contact information is accurate. You'd also like some assurance they are in fact a human being! You want to make sure that every new user account in your system is an actual person and not a robot.

There are many layers of security you can put in place to increase the quality of your signups, but one of the best is an account verification via SMS. Before a registration is fully completed, your application sends the user a one-time passcode via SMS. The user then enters the code on your website to complete their registration.

In this tutorial, you'll learn how to implement account verification at the point of registration using Twilio-powered Authy.

View the full tutorial here!

Local Development

This project is build using Java 8 and uses PostgreSQL as database.

  1. First clone this repository and cd into it.

    $ git clone [email protected]:TwilioDevEd/account-verification-servlets.git
    $ cd account-verification-servlets
  2. Copy the sample configuration file and edit it to match your configuration.

    $ cp .environment .env

    You can find your TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN in your Twilio Account Settings. You will also need a TWILIO_NUMBER, which you may find here. The AUTHY_API_KEY can be found here.

    Run source .env to export the environment variables.

  3. Create the database.

    $ createdb account_verification_servlets
  4. Execute the migrations.

    $ ./gradlew flywayMigrate
  5. Make sure the tests succeed.

    $ ./gradlew check
  6. Start the server.

    $ ./gradlew jettyRun
  7. Check it out at http://localhost:8080.

Meta

  • No warranty expressed or implied. Software is as is. Diggity.
  • MIT License
  • Lovingly crafted by Twilio Developer Education.

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.