Skip to main content
InterviewHubPRO
Section Overview
Q31

Question 31 of 50

Part 3: Microservices, Distributed Systems & Observability (25 - 35)

62%
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 -> returns Principal.
  • Authorization ("What are you allowed to do?"): Evaluated by AccessDecisionManager / AuthorizationManager -> checks GrantedAuthority roles.