Total Complexity | 1 |
Total Lines | 12 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | package com.osomapps.pt.config; |
||
11 | @Component |
||
12 | class CustomLogoutSuccessHandler implements LogoutSuccessHandler { |
||
13 | |||
14 | @Override |
||
15 | public void onLogoutSuccess( |
||
16 | HttpServletRequest request, |
||
17 | HttpServletResponse httpServletResponse, |
||
18 | Authentication authentication) |
||
19 | throws IOException, ServletException { |
||
20 | httpServletResponse.setContentType("application/json;charset=UTF-8"); |
||
21 | httpServletResponse.getWriter().format("{\"authenticated\": \"false\"}"); |
||
|
|||
22 | httpServletResponse.setStatus(HttpServletResponse.SC_OK); |
||
23 | } |
||
25 |