Acegi/Spring Security JSF Integration Project continued
We’ve gotten a good number of comments from Lincoln’s
latest post on Spring Security and JSF
. A few comments have asked for further code samples on how to get this example working.
We created a runnable project for this example, and it can be downloaded here
All you need to do is extract the project to your workspace (We use Eclipse
), and import the project. Add the project to your server and start it up. Next open your browser and navigate to:
Note*: You’ll need to change the URL to your server port number if it isn’t set to 8080.
Assuming all the steps above worked successfully you should see a page like the one below.
Now click on the Secret link. This should force you to the login page. The Secret page requires authentication to view. Go ahead and type in the User: rod Password: koala
You should now be redirected to the Secret page (shown below).
Go back to the Home page and try Logout, and Login with bad credentials and see what you get. I hope this project helps to tie up any loose ends, and helps answer any outstanding questions.
Java, JSF, Spring