Giter Club home page Giter Club logo

cardealershipapi's Introduction

Car Dealership Web Security Project

Fork this repository into your own project folder before beginning!

Background

  • You will need to create a Mongo Database called CarDealership. Run it through Docker
  • You will work in pairs for this exercise
  • You will have 30 minutes to complete this exercise

Part 1

A car dealership has approached you to ask you to update their API to have user password protection. They've done some research and found that the industry standard is to use a salt to hash passwords when new users are created.

Update the code to incorporate using a salt with a hash to save user's passwords in the database. Your code should be in the appropriate layer of the multi-layered architecture. You will need to add application logic as well as updating the entity model to reflect changes

Part 2

The car dealership has found that while the passwords in the database are now properly encrypted, they now need the ability to log in.

Add a new endpoint to their API that will receive their Usernames and Passwords and return true if it matches the values in the database

Part 3 (Stretch Goal)

The car dealership is very happy with all the functionality that you have provided, however, they don't like having to log in to the system every single time they want to make a change. They were wondering if it was possible to log in once at the beginning, and stay logged in until they are done working.

Add functionality to your application to generate a JWT when a user logs in that is passed back to the user if they pass in the correct credentials Add functionality to your application to receive a JWT on all endpoints to verify the user making the request

cardealershipapi's People

Watchers

James Cloos avatar Michael Gicking 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.