What is authentication vs authorization?
Answer
Authentication (AuthN) is the process of verifying who you are — confirming that a user is who they claim to be. Methods: passwords, MFA, biometrics, certificates, API keys, OAuth tokens. Authorization (AuthZ) is the process of determining what you are allowed to do — what resources or actions an authenticated identity can access. Example: a user logs in (authentication), then attempts to access the admin panel — the system checks if their role allows it (authorization). Both are distinct and both are necessary. A common confusion: successful authentication doesn't guarantee access. Systems like RBAC (Role-Based Access Control), ABAC (Attribute-Based), and ACLs (Access Control Lists) implement authorization. Broken access control (failing to properly authorize) is the #1 OWASP risk.