Giter Club home page Giter Club logo

loginservicesproject's Introduction

Registration and Authentication Service

Introduction

This is a web service that registers and authenticates users.
The main technologies used here are :

  • Java Servlet Technology
  • JAX-RS REST API (Jersey)
  • MongoDB (as persistence)
  • JUnit (unit testing)

Mode of Operation

User registration

Users are required to fill up a form which contains the following fields:

  • Username (unique)
  • Password
  • Confirm Password
  • First Name
  • Middle Name (Optional)
  • Last Name
  • A Security question
  • Answer to the security question

On sending the form to the server, validation occurs and incorrect parameters if provided results in HTTP response code 406. If passwords don't match then a 401 response code is sent. Success is 200 as usual. And upon successful server-side validation, the data is persisted on a MongoDB Atlas cluster.

User authentication

Users are authenticated after submission of a form containing their username and password. Success is code 200 and failure is code 401.

Updating of user details

A user can change any of their user detail in any order. Success is 200 and 406 if the user does not exist. For all other errors a code 500 is shown.

Updating unique user ID

Each user is identified by a unique user ID which is a combination of UUID, Hex String of System.nanoTime() and some random parameter. It can only be viewed on the client but has to passed as a URL path parameter. Success is 200 as usual, failure is 406.

Possible Bugs

  • Changing the unique user ID may result in duplicate inserts on username. See this SO thread thread for more details.

  • Communication with Atlas cluster takes long time.

  • JUnit tests not updated. May crash or may not produce desired result. Please screen test.

Status - Completed

loginservicesproject's People

Contributors

shankhadeep-ghoshal 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.