rliao569 / Ryan-Blog-theREAL

MIT License
0 stars 0 forks source link

Users Databases Spot Check #2

Open rliao569 opened 7 months ago

rliao569 commented 7 months ago

Ryan Liao Per 1 Lopez 1.7/2

rliao569 commented 7 months ago

Q1: database with database change

Show db.Column changes you have made to model/python file in Visual Studio Code image

Show initialization data code in VSCode image

Demo delete database and run ./migrate.sh image

Demo corresponding schema change in SQLite3 above

Demo initialization data captured in Column in SQLite3 above

Q2: postman with /authentication screen

Show /authenticate endpoint code in Visual Studio Code image

Show and Demo /authenticate in Postman… image

Demo calling to endpoint (see above) Show JSON data passed in call (see above) Show Response window (see above) Show Cookie acquired window image

Cut/Copy/Paste Cookie into jwt.io and show decrypting payload image

Q3: postman with /api screen to access data under authentication

Show /api CRUD code in Visual Studio Code, expecting READ/GET code image

Show and Demo /api READ/GET endpoint in Postman… image

Demo calling to endpoint that requires Cookie see above, authentication was required to authenticate qwerty as a user

Show Response/Data see above

Demo Deleting cookie Demo calling endpoint again Show Response/Failure image

deleted the cookie and now when i try to do a GET request with the same user qwerty it doesnt work anymore.