PCSalt
YouTube GitHub

# spring-security

2 posts

Spring Security — Role-Based Access Control (RBAC)

Implement role-based access control in Spring Boot 4 — roles vs authorities, @PreAuthorize, method-level security, hierarchical roles, and database-backed permissions.

Spring Security — JWT Authentication from Scratch

Implement JWT authentication in Spring Boot 4 with Spring Security 7 — login endpoint, token generation, validation, refresh tokens, and protected routes.