Skip to main content

Spring Security Overview: Authentication, Authorization and the Filter Chain

Learn Spring Security Overview: Authentication, Authorization and the Filter Chain (Phase 17 · Spring Security Fundamentals (Separate Project) (Core), Spring Core) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

What Spring Security provides • Spring Security is a separate project that secures applications: authentication (who are you?), authorization (what may you do?), protection against common attacks (CSRF, session fixation, clickjacking, security headers), password encoding, OAuth2/OIDC/JWT resource server and login, method security. It is built on servlet filters plus AOP method interceptors. • Core objects : SecurityContext / SecurityContextHolder (thread-bound), Authentication (principal, credentials, authorities, authenticated flag), GrantedAuthority ( ROLE_ADMIN , SCOPE_read ), UserDetails /...

More lessons in Phase 17 · Spring Security Fundamentals (Separate Project) (Core)