What is Authentication vs Authorization? #3623
-
|
What is Authentication vs Authorization? |
Beta Was this translation helpful? Give feedback.
Answered by
NadeeshaMedagama
Jun 28, 2026
Replies: 1 comment
-
|
Authentication Authentication verifies who the user is. Examples: Username/password Authorization determines what the user is allowed to do after authentication. Example ↓ Authentication ↓ User identified ↓ Authorization ↓ Can access Admin Dashboard? Admin Can: Delete users Customer Can: Buy products |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
janedoewso2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Authentication
Authentication verifies who the user is.
Examples:
Username/password
OTP
Biometrics
OAuth login
Authorization
Authorization determines what the user is allowed to do after authentication.
Example
Login
↓
Authentication
↓
User identified
↓
Authorization
↓
Can access Admin Dashboard?
Interview Example
Admin
Can:
Delete users
Add products
View reports
Customer
Can:
Buy products
View orders