Spring Boot & Microservices (50 Qs)•Part 3: Microservices, Distributed Systems & Observability (25 - 35)
What is the difference between Authentication and Authorization in Spring Security?
senior LevelSecurity & AuthSystem DesignMicroservices
In Simple Words:
- Authentication ("Who are you?"): Verified via
AuthenticationManager-> returnsPrincipal. - Authorization ("What are you allowed to do?"): Evaluated by
AccessDecisionManager/AuthorizationManager-> checksGrantedAuthorityroles.