728x90

- 인증
- AjaxAuthenticationFilter에서 인증 요청을 받는다
- AjaxAuthenticationToken, AjaxAuthenticationManager, AjaxAuthenticationProvider를 만들어 인증처리를 한다.
- 인증 성공 = AjaxAuthenticationSuccessHandler
- 인증 실패 = AjaxAuthenticationFailureHandler
- 인가
- FilterSecurityInterceptor 에서 권한 체크
- 만약 AuthenticationException, AccessDeniniedEception일 발생할 경우 ExceptionTranslationFilter에서 잡는다.
- 인증이 실패했을경우 AjaxUrlAuthenticationEntryPoint에서 어떤 행동을 할지 적는다.
- 자원 접근이 거부되었을 경우 AjaxAccessDeniedHandler에서 어떤 행동을 할지 적는다.
728x90
'스프링 시큐리티 > 실전프로젝트 - 인증 프로세스 Ajax 인증 구현' 카테고리의 다른 글
| ch06. Ajax Custom DSLs 구현하기 (0) | 2022.01.21 |
|---|---|
| ch05. 인증 및 인가 예외 처리 - AjaxLoginUrlAuthenticationEntryPoint, AjaxAccessDeniedHandler (0) | 2022.01.21 |
| ch04. 인증 핸들러 - AjaxAuthenticationSuccessHandler, AjaxAuthenticationFailureHandler (0) | 2022.01.20 |
| ch03. 인증 처리자 - AjaxAuthenticationProvider (0) | 2022.01.20 |
| ch02. 인증 필터 - AjaxAuthenticationFilter (0) | 2022.01.20 |