Authentication vs Authorization: Core Distinction
You'll learn the fundamental difference between proving who you are (authentication) and what you're allowed to do (authorization).
These two concepts are often confused, but they serve distinct security purposes and happen at different stages of access control.
What is Authentication?
Authentication answers the question: "Who are you?"
It's the process of verifying a user's identity—proving that someone is who they claim to be. When you log into a system with a username and password, or use your fingerprint, you're authenticating yourself. The system checks your credentials against stored records to confirm your identity.
Think of it like showing your ID at airport security. You prove you are the person named on your ticket.
What is Authorization?
Authorization answers the question: "What are you allowed to do?"
After your identity is confirmed, authorization determines which resources you can access and what actions you can perform. A regular user might read files, while an admin can delete them—even though both authenticated successfully.
Using the airport analogy: once you've proven your identity (authentication), your boarding pass determines which gate you can access and which seat is yours (authorization).
The Critical Sequence
Authentication always comes first. You can't grant permissions to someone whose identity you haven't verified. The typical flow is:
- User provides credentials (username/password, token, biometric)
- System authenticates: validates identity
- System authorizes: checks permissions for the requested resource
- Access granted or denied based on authorization rules
You can be authenticated but not authorized. For example, you might successfully log into a system (authenticated) but get an "Access Denied" error when trying to view admin settings (not authorized).
Key Takeaway: Authentication proves identity ("you are Alice"), while authorization grants access ("Alice can read these files"). They're separate, sequential steps in access control—you must know who someone is before deciding what they can do.