GithubHelp home page GithubHelp logo

winstonhong / java-servlet-login-and-display Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ntt2k/java-servlet-login-and-display

8.0 2.0 21.0 331 KB

Java Servlet backend with Tomcat & MySQL for simple login system and display responsive data table.

Java 100.00%
oauth2 oauth2-client oauth2-applications

java-servlet-login-and-display's Introduction

Java Servlet Login and Display

Most web apps start with system Login and data Display.

This simple app serves both purposes by Building backend with Tomcat 7 & MySQL 5 for simple Login system and Displaying responsive Data Table with Bootstrap 3. The system login supports OAuth 2.0 authentication as well as username/password authentication.

A user can log in to this simple web application using username/password credential or through a third-party authentication provider such as idQ Trust as a Service (idQ TaaS) or Google Identity Platform via OAuth 2.0 protocol.

Screenshot Screenshot

Installation

  • Create MySQL database through script 'createtable_composite.sql' inside 'database' folder.
  • Input MySQL database login credential in 'src/main/java/LoginDao.java'.
  • Input OAuth 2.0 authentication credential in 'src/main/resources/Oauth2.properties'.
  • Execute command "mvn tomcat7:run" to run the standalone web server.

OAuth 2.0 Login Demo

  • Access the link "https://localhost:8443" or "https://your-web-hostname:8443" for OAuth 2.0 login
  • Click idQ Sign In
  • You are redirected to idQ TaaS login screen
  • Scan idQ QR code using your idQ Trusted Device
  • You will be redirected back to reach the home screen of employee information if you have been authenticated by idQ TaaS successfully via OAuth 2.0 protocol.

Version History

v0.12:

  • Fixed closing all database connections after each session use or logout.

v1.01:

  • Add OAuth 2.0 login support.

Credit

Basic interview project by http://www.compositeapps.net/

Support

Originally Developed by http://ntt2k.io

OAuth 2.0 support Developed by winstonhong @ inbaytech

java-servlet-login-and-display's People

Contributors

ntt2k avatar winstonhong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.