| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- Reflection
- 모던자바
- 약수
- redis
- 운영체제
- Spring
- 리플렉션
- 스프링
- Junit5
- Deadlock
- 백준
- 알고리즘
- 객체지향
- 스프링 시큐리티
- OS
- Python
- BOJ
- test
- 모던 자바 인 액션
- 최소 신장 트리
- 파이썬
- CS
- spring security
- proxy
- 자바
- java
- 다이나믹 프록시
- 프록시
- 문자열
- MST
Archives
- Today
- Total
Dev 달팽이 @_''
Spring Security - Remember me 인증 본문
Remember me 인증
- 세션이 만료되고 웹 브라우저가 종료된 후에도 어플리케이션이 사용자를 기억하는 기능
- Remember-Me 쿠키에 대한 Http 요청을 확인한 후 토큰 기반 인증을 사용해 유효성을 검사하고 토큰이 검증되면 사용자는 로그인 된다.
- 사용자 라이프 사이클
- 인증 성공(Remember-Me 쿠키 설정)
- 인증 실패(쿠키가 존재하면 쿠키 무효화)
- 로그아웃(쿠키가 존재하면 쿠키 무효화)
http.rememberMe() : rememberMe 기능이 작동함
SecurityConfig
.and()
.rememberMe()
.rememberMeParameter("remember") // 기본 파라미터명은 remember-me
.tokenValiditySeconds(3600) // 토큰 만료 시간(Default는 14일)
.userDetailsService(userDetailsService);'Java&Spring > Spring Security' 카테고리의 다른 글
| Spring Security - AnonymousAuthenticationFilter (0) | 2022.06.21 |
|---|---|
| Spring Security - RememberMeAuthenticationFilter (0) | 2022.06.21 |
| Spring Security - Logout, LogoutFilter (0) | 2022.06.21 |
| Spring Security - UsernamePasswordAuthenticationFilter (0) | 2022.06.21 |
| Spring Security - Form 인증 (0) | 2022.06.21 |