Bảo mật web
3 bài viết
OAuth 2.0 giải thích đơn giản: luồng, token và refresh
OAuth 2.0 flow token refresh giải thích từ đầu: authorization code, PKCE, client credentials. Code Node.js minh hoạ. Khi nào dùng cái nào?

HTTPS và TLS hoạt động thế nào: giải thích cho developer
HTTPS TLS cách hoạt động: handshake, certificate, cipher suite, TLS 1.3 cải tiến. Setup Let's Encrypt, HSTS, perfect forward secrecy.

CSRF token: khi nào vẫn cần khi đã có SameSite cookie
CSRF token khi nào cần với SameSite cookie? Phân tích thực tế: cookie auth vs Bearer token, double submit, synchronizer pattern. Code Node.js.


