PrepZone Logo
PrepZone
Back to Spring Boot

Spring Boot · Medium

What is the difference between GrantedAuthority and Role?

Spring BootSpring SecurityAuthorizationSeniorStaff

Answer preview

GrantedAuthority is the Spring Security interface representing a permission or authority granted to a principal. It's a string-based representation of what the user can do.…