Interview questions
Question 118 of 254
FreeWhat is the difference between authentication and authorization?
Spring Security
Authentication answers 'who are you?' — verifying an identity, typically via credentials like a username/password or a token. Authorization answers 'what are you allowed to do?' — determining whether an already-authenticated identity has permission to perform a specific action or access a specific resource. Spring Security handles both, but as distinct, sequential concerns: authentication must succeed before authorization checks are meaningful.
Beginner3 min

