[Spring Security] 스프링 시큐리티 기본 API 및 Filter (3)
인증 API - Logout 클라이언트가 서버에 로그아웃을 요청을 보내면 서버는 세션을 무효화시키고 인증 토큰을 삭제 시킨다. 이때 인증 토큰이 저장되어있는 SecurityContext 객체도 삭제한다. 쿠키정보도 삭제할 수 있고 로그아웃 이후에 리다이렉트 할 페이지를 지정할 수도 있다. @Override protected void configure(HttpSecurity http) throws Exception { //로그아웃 http .logout() .logoutUrl("/logout") .logoutSuccessUrl("/login") .addLogoutHandler((request, response, authentication) -> { HttpSession session = request.ge..
Spring Framework
2022. 7. 6. 20:28
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- localtime
- elasticsearch
- JavaScript
- svn
- 오라클
- springboot
- rocky
- Spring Security
- mybatis
- Bash tab
- Java
- oracle
- maven
- window
- 베리 심플
- Linux
- Github Status
- LocalDateTime
- docker
- Spring
- Mac
- config-location
- 북리뷰
- intellij
- jQuery
- Kotlin
- 프로페셔널 스튜던트
- mybatis config
- input
- LocalDate
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
31 |
글 보관함