Code Monkey home page Code Monkey logo

jv-web-security's Introduction

Web security

  • To get the actual parameters of the database tables, run script from the resources/init_db.sql file in the Workbench.
  • Add two more fields (login and password) to your Driver class. We will simplify the task, and our Driver will behave as User.
  • Modify the required JSP pages and corresponding controllers to support two new fields: login and password.
  • Modify DriverDaoImpl and CarDaoImpl to fetch all columns for drivers, including new ones.
  • Create new AuthenticationService with method Driver login(String login, String password);
  • Create new method Optional<Driver> findByLogin(String login) in DriverDao and DriverService.
  • Use your new method findByLogin in the authService.login(login, password) method to identify the user based on the login
  • Implement LoginController with corresponding JSP page
  • Implement LogoutController and add a corresponding button on all pages where it should be
  • Implement user authentication based on HttpSession and filters. Only LoginController and CreateDriverController should be available for non authenticated users.
  • Having information about currently logged-in user (e.g. driver), please implement the following controller GetMyCurrentCarsController. This controller is responsible for displaying the list of cars for currently logged driver (get info about the driver from the HttpSession). Hint: Use existed JSP page for displaying all cars.

You can check yourself using this checklist

jv-web-security's People

Contributors

alexrozv avatar boroda4436 avatar issugy avatar kostyanikiforov avatar kseniiamakarova avatar liliia-ponomarenko avatar maliukdaria avatar max-pochepets avatar nick97-git avatar noct2000 avatar resci avatar romandubovskyi avatar sofasmile 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.