강의

멘토링

커뮤니티

Inflearn Community Q&A

terry3359's profile image
terry3359

asked

Spring Security

2) Authentication Filter - AjaxAuthenticationFilter

usernamePassword

Written on

·

237

0

ajaxfilter를 usernamePasswordFilter 보다 앞에 위치 시키신 이유는 무엇인가요?? 

Spring Securityspring-bootjava

Answer 1

0

leaven님의 프로필 이미지
leaven
Instructor

그건 특별한 이유가 있는 것은 아닙니다.

뒤에 위치해도 됩니다.

AjaxFilter 든 UsernamePaaswordFilter 든 요청 조건에 따라 필터가 실행되도록 구현을 하면 됩니다.

두 개의 필터는 요청에 따른 실행 조건이 다르기 때문에 이 경우에는 위치가 중요하지는 않습니다.

terry3359's profile image
terry3359

asked

Ask a question