jgribonvald / demo-spring-security-cas

App example for configuring/implementing an app with spring-security-cas and using Spring boot
Apache License 2.0
95 stars 54 forks source link

Not able to logout from CAS URL #2

Open yhjhoo opened 8 years ago

yhjhoo commented 8 years ago

Steps to reproduce:

  1. Login in demo
  2. Logout by using CAS logout URL
  3. demo is not log out.
jgribonvald commented 8 years ago

Are you sure that your apps receive the CAS logout request ? If I understand well your problem is when the logout request is initalized by CAS and not from the app.

After this is now an old project, I upgraded only the second project https://github.com/jgribonvald/demo-spring-cas-angular to be able to use the logout, maybe watch on my commit on this other project that resolved last bugs on logout. After I can try to watch but it won't be in next days...

yhjhoo commented 8 years ago

I use the logout URL of CAS server, I believe this demo do not configure listener, that's the reason it didn't logout.

jgribonvald commented 8 years ago

It's possible, and it's not a lot to do Also if you run in debug mod for org.jasig.* you will see at least if the CAS server sent you the logout request. Because if you are running this apps on localhost the cas server won't be able to provide you a logout request (expect if you are runing on a known ip/server name)

andygiangnh commented 7 years ago

hi, sorry to hijack the issue but would you update the project readme please. I think it would help audience with some citing on prerequisite setup & requirement. For instance, CAS server setup, and some explanation what the code trying to achieve. Of course, as reader we have to do our homework, but it is the whole purpose of readme isn't it? Thanks for great sharing!