Blog

Your dream job? Lets Git IT.
Interactive technical interview preparation platform designed for modern developers.

XGitHub

Platform

  • Categories

Resources

  • Blog
  • About the app
  • FAQ
  • Feedback

Legal

  • Privacy Policy
  • Terms of Service

© 2025 LetsGit.IT. All rights reserved.

LetsGit.IT/Categories/Spring
Springhard

Spring Security — where do authentication/authorization happen?

Tags
#spring-security#filters#auth
Back to categoryPractice quiz

Answer

Mainly in the security filter chain, before the request reaches controllers. Filters build the `SecurityContext` (authentication), then authorization checks decide if access is allowed (URL rules, method security, etc.).

Related questions

Spring
Spring Security context — why can auth break in async code?
#spring-security#securitycontext#threadlocal
Next.js
Next.js App Router auth: how do you keep it secure and SSR-friendly?
#nextjs#auth#cookies
Architecture
Authentication vs authorization — what’s the difference?
#auth#authentication#authorization