Introduction
Imagine using an app where anyone can see your personal information or pretend to be you. This problem shows why apps need a way to check who you really are before giving access.
Think of a gym where only members can enter. At the entrance, a staff member checks your membership card to make sure you belong there. This check keeps the gym safe and comfortable for everyone.
┌─────────────────────────────┐
│ User tries │
│ to access │
│ app │
└─────────────┬───────────────┘
│
▼
┌─────────────────────────────┐
│ Authentication │
│ (Check who the user is) │
└─────────────┬───────────────┘
│
┌───────┴────────┐
│ │
▼ ▼
┌─────────────┐ ┌───────────────┐
│ Access │ │ Access Denied │
│ Granted │ │ (Unauthorized)│
└─────────────┘ └───────────────┘