Definition: Authentication is the process of verifying the identity of a user or system. It ensures that the entity attempting to access a resource is who it claims to be.
How It Works: Typically involves credentials such as passwords, biometric data, or tokens.
Examples:
Username and Password: The user provides a username and a password.
Multi-Factor Authentication (MFA): Involves multiple forms of verification, such as a password and a one-time code sent to a mobile device.
Biometric Authentication: Uses fingerprint, facial recognition, or iris scan to verify identity.
Authorization
Definition: Authorization determines what an authenticated user or system is allowed to do. It controls access to resources and permissions.
How It Works: After authentication, the system checks the user's permissions to access specific resources or perform certain actions.
Examples:
Role-Based Access Control (RBAC): Assigns permissions to users based on their roles within an organization.
Access Control Lists (ACLs): Specify which users or system processes are granted access to objects and what operations are allowed.
Permission Levels: Different levels of access, such as read-only, read-write, or admin privileges.