Authentication & Security
An authentication path covering JWT flows across JavaScript, Python, Go, Rust, and TypeScript, secret handling, traversal guards, and token inspection.
A security-focused learning path covering authentication, authorization, OAuth2, JWT, session management, password security, CORS, CSP, and common vulnerabilities for secure web applications.
Read "A Complete Guide to JWT Authentication in Web Applications" for the "Anatomy of a JWT" argument, then name the decision in security work it would change.
Next step: Security Boundaries in Modern Web Applications
⏱ 1h
Compare "Content Security Policy" with "Cross-Origin Resource Sharing" in "Security Boundaries in Modern Web Applications" and state which trade-off you would accept in security code.
Prerequisites: A Complete Guide to JWT Authentication in Web Applications
Next step: Node.js JWT Auth with Express
⏱ 1h
Execute "Node.js JWT Auth with Express", change one constant, and describe how the output diverges from "Implement JWT authentication flow in Node.js Express with bcrypt password hashing, token".
Prerequisites: Security Boundaries in Modern Web Applications
Next step: FastAPI JWT Authentication Middleware
⏱ 0.75h
Run the security snippet "FastAPI JWT Authentication Middleware", capture stdout, and show which line demonstrates the documented behavior: "Implement JWT authentication in FastAPI with python-jose and passlib.".
Prerequisites: Node.js JWT Auth with Express
Next step: Go JWT Authentication with Claims
⏱ 0.75h
Adapt "Go JWT Authentication with Claims" to a second input and compare the new output with the behavior described in "Generate and validate JWT tokens in Go using the golang-jwt package with custom claims,".
Prerequisites: FastAPI JWT Authentication Middleware
Next step: Rust JWT Authentication
⏱ 0.75h
Execute "Rust JWT Authentication", change one constant, and describe how the output diverges from "Implement JWT authentication in Rust using the jsonwebtoken crate with HMAC-SHA256 signing,".
Prerequisites: Go JWT Authentication with Claims
Next step: Next.js JWT Authentication Middleware
⏱ 0.75h
Run the security snippet "Next.js JWT Authentication Middleware", capture stdout, and show which line demonstrates the documented behavior: "Implement JWT-based authentication in Next.js using middleware for route protection,".
Prerequisites: Rust JWT Authentication
Next step: Load Secrets From Environment Not From Files
⏱ 0.75h
Adapt "Load Secrets From Environment Not From Files" to a second input and compare the new output with the behavior described in "A config loader that keeps secret values out of committed files by resolving them from the".
Prerequisites: Next.js JWT Authentication Middleware
Next step: Log Scrubber Redacting Secret Values
⏱ 0.75h
Execute "Log Scrubber Redacting Secret Values", change one constant, and describe how the output diverges from "A structured log scrubber that masks known secret keys and bearer tokens before".
Prerequisites: Load Secrets From Environment Not From Files
Next step: Safe Path Join Blocking Traversal
⏱ 0.75h
Run the security snippet "Safe Path Join Blocking Traversal", capture stdout, and show which line demonstrates the documented behavior: "A path resolver that joins untrusted segments onto a base directory and rejects any attempt".
Prerequisites: Log Scrubber Redacting Secret Values
Next step: jsonwebtoken
⏱ 0.75h
Read "jsonwebtoken"'s documented surface around "jwt.sign jwt.sign(payload, secret, opts?): string", then build a minimal endpoint and log the response.
Prerequisites: Safe Path Join Blocking Traversal
Next step: JWT Token Decoder
⏱ 1h
Use "JWT Token Decoder" on a security sample, then check "jwt-token to decoded-payload" against your manual result.
Prerequisites: jsonwebtoken
Next step: Validate Token Claims Against a Policy
⏱ 0.25h
Build "Validate Token Claims Against a Policy" for security code and verify [expired] against both samples.
Prerequisites: JWT Token Decoder
Next step: Capstone: Authentication & Security
⏱ 0.5h
Ship "Authorization code issue" from "Implement an OAuth2 Authorization Code Server", then prove it with the project's test suite and an acceptance note.
Prerequisites: JWT Token Decoder, Validate Token Claims Against a Policy
Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.
⏱ 4h