class OauthLogoutSuccessHandler implements LogoutSuccessHandler {
	private static final String REDIRECT_URL = "redirect_url";
	private final RedirectStrategy redirectStrategy = new DefaultRedirectStrategy();
	private final UnifiedLogoutService unifiedLogoutService;
	private final SecurityProperties securityProperties;
	private final ObjectMapper objectMapper;

	@Override
	public void onLogoutSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException {<FILL_FUNCTION_BODY>}
}

		if (securityProperties.getAuth().getUnifiedLogout()) {
			unifiedLogoutService.allLogout();
		}

		String redirectUri = request.getParameter(REDIRECT_URL);
		if (StrUtil.isNotEmpty(redirectUri)) {
			//重定向指定的地址
			redirectStrategy.sendRedirect(request, response, redirectUri);
		} else {
			ResponseUtil.responseWriter(objectMapper, response, "登出成功", 0);
		}
	
<no_super_class>