Skip to content

nsadili/site_wm2_2023_spring_as2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Assignment 2

Security and Logging.

Dear students,

In this assignment, you are required to create a very simple MVC application using Spring similar to the previous Assignment. (One entity and CRUD operations on that entity is enough). In the index file, provide necessary links to nagivate through you web site. You may pick one of the entities from the previous assignment to save up the time.

Task related: (20%)

  • Create a CRUD for a single entity
  • Perform a validation for data entry in create and update
  • Use DTO pattern instead of exposing your entities to the client

Task related: (20%)

  • Enable Spring Security and create simple login page
  • You might need to create two default users (one with admin role another with user role) during the application startup
  • In the above CRUD apply necessary authorization rules so that only ADMIN users can CREATE, DELETE and UPDATE the records while any user can list all the records
  • Provide logout mechanism from any existing page

Task related: (20%)

  • Create a sign-up page. Add links to login and signup pages in the index.
  • Users should be able to register themselves (by default with USER role) and login using this user.

Task related: (30%)

  • Provide a CRUD for users too (only list, delete, update (only ROLE should be updates) since creating a user happens through signup)
  • Only users with ADMIN role will have access to list, delete and update the role of any users

Task related: (5%)

  • Use logging to show info, warning, and errors in the controller actions. Note: Use different logging levels for each controller.
  • Write a good README file to describe what you have done.

Submission related: (5%)

  • Record a short video not exceeding 5 minutes to explain the code as well as the way users can interact with the end product
      Show:
    • main blocks of the code base
    • each of the features mentioned above
    • database after the insertion, updates and removals
  • Upload the video to YouTube and share the link by adding it to your home page.
  • Submissions without a video submission will not be graded.

This assignment will give you 10% of the total.
Good luck!
NS

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published