RayyanDarugar / student

MIT License
0 stars 0 forks source link

Rayyan Darugar CSP Spot Check (database, postman, cookies) #5

Open RayyanDarugar opened 5 months ago

RayyanDarugar commented 5 months ago

Rayyan Darugar, P5, 1.83 All Scores: Q1: .89, Q2: .91, Q3: .92 Top 4 Score Total: Q2: .91 + Q3: .92 = 1.83 of 2

Question 1: database, with database schema change

Tools error - unresolved, hence the .89, doesn't let me run ./migrate.sh anymore.

Screenshot 2024-01-31 at 3 34 49 PM

Demo Data for users with added Rayyan Darugar user and added favorite color section

Question 2: Postman with /authentication screen:

Screenshot 2024-01-31 at 3 40 56 PM Screenshot 2024-01-31 at 3 41 10 PM

Authenticate endpoint code shown - based on _Security class also shown.

Screenshot 2024-01-31 at 3 42 17 PM

Demos POST request to /authenticate code using JSON data. Shows Response.

Screenshot 2024-01-31 at 3 43 08 PM

Shows cookie acquired with the JWT token shown

Screenshot 2024-01-31 at 3 43 39 PM

Shows JWT.io decrypting

Question 3: Postman with /api screen to access data under authentication

Screenshot 2024-01-31 at 3 45 30 PM

Shows CRUD READ code

Screenshot 2024-01-31 at 3 46 19 PM

shows what page gives when cookie is deleted - no response

Screenshot 2024-01-31 at 3 46 54 PM

cookie made

Screenshot 2024-01-31 at 3 47 12 PM

New Response