I am following this tutorial about Spring-Security-Oauth2 :
https://github.com/spring-guides/tut-spring-boot-oauth2/tree/master/logout
The problem that I am facing is, when I clicked the logout button this send a post request to the /logout endpoint to kill to session, but when I clicked the LogIn button again I expect to see the login Form Again. But It seems that when /logout is called, this is in somewhere saving the information of the last logged user and always re-login again and does not display the login form.
I don't know how to kill the session in the SSO, I am using the same facebook OAuth.
Thanks for help.
http.logout().deleteCookies("JSESSIONID", "ANY_OTHER_COOKIE")in your Spring Security configuration. You can use your browser to find the cookies which your service is saving to your browser. - David V