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 |
Tags
- jpa
- AccessToken
- kotest testcontainers
- 형상관리
- aop
- interface
- 소수찾기 java
- redissonlock aop
- Spring Cloud Gateway
- 낙관적 락 재시도
- 알고리즘
- 백준
- OptimisticLock
- S3
- spring DI
- 우아한 테크러닝
- @transactional
- 낙관적 락 롤백
- Invalid property 'principal.username' of bean class
- springsecurity
- RefreshToken
- java
- DI
- netty
- spring aop
- multimodule testcontainers
- ObjectOptimisticLockingFailureException
- TestContainers
- 멀티모듈 테스트컨테이너
- ObjectOptimisticLockingFailureException 처리
Archives
- Today
- Total
목록AuthenticationSuccessHandler (1)
조급하면 모래성이 될뿐
로그인 성공시 추가작업
참조 [ 사랑이 고픈 프로그래머 ] [ to-dy블로그 ] 목표 - 로그인 성공시 무조건 MainPage가아니고, 이전에 요청했던 URL로 이동할 수 있다. ( redirectURL설정 ) ex) 로그인 되지않은 상태에서 게시판조회를 할 수 없다고 가정해보자. 화면에서 게시판 조회를 누르면 로그인 창이 뜨게 될것이다. 이 때 로그인 성공했을 때 게시판 조회화면이 출력되도록 한다. - 로그인 성공시 로그인 실패 횟수를 초기화시켜준다. - 로그인 성공시 실패 에러 세션을 삭제한다. 성공 처리 로그인 성공 후 부가 작업을 하고 싶을 때, SpringSecurity에서 제공하는 인터페이스인 AuthenticationSuccessHandler를 구현한 클래스를 만들어서 onAutenticationSuccess 메..
구현 기록/SpringSecurity
2020. 2. 19. 16:44