Spring Boot OAuth2 Single Sign Off (Logout)
After a lot of tests I have realized that this can be solved just with a redirect to the AuthServer and doing logout programmatically like this: In the client app (WebSecurityConfigurerAdapter): @Override protected void configure(HttpSecurity http) throws Exception { http .logout() .logoutSuccessUrl(“http://your-auth-server/exit”); } In the authorization server: @Controller public class LogoutController { @RequestMapping(“/exit”) public void … Read more