Åtkomstkontroll styr vad autentiserade användare kan göra — genom modeller som RBAC (Role-Based Access Control) och principer som minsta behörighet. Korrekt åtkomstkontroll är kritisk, eftersom bruten åtkomstkontroll är OWASP:s #1-sårbarhet.
Åtkomstkontrollmodeller
RBAC (Role-Based Access Control) → assign users to ROLES; roles have PERMISSIONS:
→ user → role(s) (admin, editor, viewer) → permissions → access decisions
→ manageable, common; change a role's permissions, all its users update
ABAC (Attribute-Based) → decisions based on ATTRIBUTES (user, resource, context) → flexible,
fine-grained (e.g. "editors can edit docs in their department during business hours")
ACLs → per-resource lists of who can do what
