Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 알고리즘
- spring DI
- netty
- spring aop
- 형상관리
- ObjectOptimisticLockingFailureException 처리
- jpa
- 낙관적 락 롤백
- multimodule testcontainers
- S3
- redissonlock aop
- DI
- Spring Cloud Gateway
- AccessToken
- @transactional
- Invalid property 'principal.username' of bean class
- TestContainers
- springsecurity
- RefreshToken
- 소수찾기 java
- interface
- 백준
- OptimisticLock
- 낙관적 락 재시도
- aop
- 멀티모듈 테스트컨테이너
- java
- ObjectOptimisticLockingFailureException
- kotest testcontainers
- 우아한 테크러닝
Archives
- Today
- Total
목록AuthenticationFailureHandler (1)
조급하면 모래성이 될뿐

참조 블로그 [ to-dy ] [ 사랑이 고픈 프로그래머 ] 목표 - SpringSeucurity를 활용하여 로그인 실패 시 처리되야하는 프로세스를 추가해보자. - 로그인 실패 시 실패 횟수를 증가시킨다. - 5번이상 실패하면 계정을 비활성화시킨다. - 로그인 실패에 대한 에러 메시지를 session처리 방식에서 request.setAttribute방식으로 변경한다. - 에러메시지를 하드 코딩하지 말고 별도 properties파일로 관리해보자. 작업 과정 기록하기 로그인 실패 시 수행될 프로세스를 정의하기 위해서는 AuthenticationFailureHandler 인터페이스를 구현 후 onAuthenticationFailure() 메서드를 재정의 해주면 된다! 아래는 onAuthenticationFai..
구현 기록/SpringSecurity
2020. 2. 12. 11:50