You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
인터셉터와 리졸버 중 어느 계층에서 인증처리를 구현할지에 대해서 많은 고민과 생각이 묻어나는 글이었습니다. 어노테이션을 인자에서 작성하는게 가능하군요.
용도별로 분류해봤을때 공통으로 적용되어야 하는 로직은 인터셉터, 부분적으로 적용이 필요한 로직은 리졸버 정도로 이해가 갑니다.
어떤경우에 인터셉터가 필요할까 아래와 같은 시나리오를 상상해봤습니다.
CSRF 공격을 방어하기 위해 사용자 요청이 유효한 url인지 검사하는 로직을 서버에서 수행해야 합니다.
스프링에서 Argument Resolver 기반 어노테이션으로 인증 책임을 분리해보자!
현재 포스트는 harmony 팀 크루 "haon"이 작성했습니다. Argument Resolver…
https://kakaotech-harmony.netlify.app/backend/argument-resolver/
The text was updated successfully, but these errors were encountered: