STAGE 05 / 08
Testing & security
Protect the application and use tests to catch mistakes before release.
Sessions · JWT · OAuth · OWASP · Unit tests · Playwright
START LEARNING
Choose a lesson.
Each lesson includes an explanation, an example and a short exercise.
- 01Authentication versus authorizationKnowing who a user is and deciding what they may do are separate checks.
- 02Sessions, cookies and JWTsSessions and tokens can carry login state, but they have different operational trade-offs.
- 03OAuth 2.0 and OpenID ConnectOAuth delegates access; OpenID Connect adds an identity layer on top.
- 04OWASP, XSS and CSRFSecurity starts by identifying what can go wrong across trust boundaries.
- 05Unit and integration testsDifferent tests give confidence at different boundaries.
- 06End-to-end testing with PlaywrightAn end-to-end test follows a real user flow through the browser.