当前位置:网站首页>Logout successful processor
Logout successful processor
2022-06-09 10:20:00 【Leon_ Jinhai_ Sun】
@Component
public class SGLogoutSuccessHandler implements LogoutSuccessHandler {
@Override
public void onLogoutSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException, ServletException {
System.out.println(" Logout successful ");
}
}@Configuration
public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Autowired
private AuthenticationSuccessHandler successHandler;
@Autowired
private AuthenticationFailureHandler failureHandler;
@Autowired
private LogoutSuccessHandler logoutSuccessHandler;
@Override
protected void configure(HttpSecurity http) throws Exception {
http.formLogin()
// Configuration authentication succeeded
.successHandler(successHandler)
// Failed to configure authentication processor
.failureHandler(failureHandler);
http.logout()
// Processor configuration unregistered successfully
.logoutSuccessHandler(logoutSuccessHandler);
http.authorizeRequests().anyRequest().authenticated();
}
}边栏推荐
- Kubernetes Chapter 7: Advanced pod, advanced controller, resource and dashboard
- Blazor University (27)路由 —— 检测导航事件
- Introduction to scientific research: how can you improve your scientific research ability when your tutor is completely free for nursing?
- 損失 3 億美元後,IBM 宣布退出俄羅斯!
- When you are lonely, depressed and anxious Please remember, there is wind and rain
- The more you look at the screen, the better it looks
- Authentication successful processor
- 华泰证券是安全的吗
- CSRF Cross Station Request Forgery
- Security monitoring video easycvr video access interface adds the close button of a single video
猜你喜欢
![Construction of vocabulary and sampling -- [torch learning notes]](/img/51/e1b67a0675f4e3db9abe9207c0b968.png)
Construction of vocabulary and sampling -- [torch learning notes]

Notes on the development of raspberry pie (15): Raspberry pie 4b+ compile and install MySQL database from the source code

1019. 链表中的下一个更大节点
![Cyclic neural network theory -- [torch learning notes]](/img/42/4f9a70b707ad87d1f483129fea6e7e.png)
Cyclic neural network theory -- [torch learning notes]

Terraform 学习总结(6)—— 基于阿里云平台上的 Terraform 实战

MSF information collection based on TCP protocol

Openstack explanation (13) -- Grace keystone setup and startup
![[genius_platform software platform development] lesson 101st: summary of errors encountered in compiling Windows environment vs2017 for DZ products of power projects](/img/6c/9e96c220d099cdcd35654b39adb581.png)
[genius_platform software platform development] lesson 101st: summary of errors encountered in compiling Windows environment vs2017 for DZ products of power projects

明道云上榜2022年中国信创行业办公软件排行榜

Kubernetes第七篇:Pod进阶、Controller进阶、Resource和Dashboard
随机推荐
1324. print word vertically - Li Kou Shuangbai code
基于云的 LDAP 入门(上)
基于云的 LDAP 如何解救传统 LDAP?
树莓派开发笔记(十五):树莓派4B+从源码编译安装mysql数据库
31. 下一个排列
Openstack explanation (XI) -- openstack grace service theoretical knowledge
16. sum of the nearest three numbers - quick sort plus double pointer method
The role of graphic edge detection in digital image processing in image understanding
Mingdao cloud on the list of office software in China's information and innovation industry in 2022
WPF 实现带明细的环形图表
机器学习笔记 - 什么是BLEU分数?
电池充放电设备招投标解决方案
N-grams language model -- [torch learning notes]
Cyclic neural network theory -- [torch learning notes]
跨域请求的问题
Machine learning housing rental price forecasting: exploratory data analysis + Feature Engineering + modeling + reporting
Introduction à l'AC du tissu, installation, utilisation
全球 77.5% 的网站,都在使用“世界上最好的语言” PHP!
Interview question 01.06 String compression
978. longest turbulent subarray