L-applikazzjonijiet moderni jużaw varji mekanizmi ta' awtentikazzjoni — session-based, token-based (JWT), u delegated authentication (OAuth/OpenID Connect). Huwa importanti li tifhem kif jaħdem kull wieħed, u t-trade-offs tagħhom, biex timplimenta awtentikazzjoni sigura.
Session-based authentication
SESSION-based (traditional):
→ user logs in → server creates a SESSION (stored server-side) → sends a session ID
cookie → the browser sends it with each request → server looks up the session
✓ server controls sessions (easy to revoke); simple; cookie auto-sent
✗ stateful (server stores sessions); scaling needs shared session storage
