Looking for a Simple Spring security example [closed]
I am new to spring-security (Java) and I am looking for a good and simple example of:
How to use spring security for login and logout
Make sure that the session exists on every page and if not redirect to the login again
How get access to the current User Session
My project is currently working with spring MVC, and hibernate.
I have built the loginAPI + loginDAO, I need now to combine the security and make some of the pages secured.
I searched for tutorials, but a lot of them are very complicated.
Well.
This is I think by far is the best i have seen so far!
http://krams915.blogspot.com/2010/12/spring-security-mvc-integration_18.html
You can look for a Single-Sign-On(e.g CAS) implementation in Spring Security. It'll serve your purpose completely.
Check Out :-
http://static.springsource.org/spring-security/site/docs/3.0.x/reference/cas.html
https://wiki.jasig.org/display/CASC/Using+the+CAS+Client+3.1+with+Spring+Security