Roles, Authorities and RBAC
Learn Roles, Authorities and RBAC (Spring Security, Spring Boot) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Authority: the One Real Concept Spring Security has exactly one permission concept: the granted authority , a plain string attached to the logged-in user. A role is just an authority whose name starts with ROLE_ . Everything else is naming convention.
More lessons in Spring Security
- Spring Boot Security Basics
- How Spring Security Authenticates
- SecurityFilterChain: Securing URLs
- Users and Passwords (BCrypt)
- Method-Level Security
- CSRF and CORS
- Spring Security - Hands-On Setup
- JWT Authentication
- OAuth 2.0, OpenID Connect and Social Login
- Security Errors and API Hardening
- Mini Project: Role-based API Security (Basic Auth)