"Simple Software"

OcpSoft

» Spring Security – What happens after /you/ log in?

July 23rd, 2009 by Lincoln

So you’ve got Spring Security up and running. Great! Now you’ve got a login page, and you just added a form on the global page menu to allow users to Login from any public page. There’s just one problem. When they log-in from a public page, they’re redirected to the default-login-url! Your users will have to re-navigate to the page they were already viewing when they logged in, or maybe they’ll just use the much dreaded “Back” button. That’s not a good interaction, but we have a solution. Continue reading this article »

Posted in JSF, Spring | 14 Comments »

» Revisited – Acegi/Spring Security & JSF Login Page

April 27th, 2009 by Lincoln

A correction has been made to the post: http://ocpsoft.com/java/acegi-spring-security-jsf-login-page/, fixing an issue where FacesMessages were not being displayed on failed authentications.
Continue reading this article »

Posted in JSF, Spring | No Comments »

» Acegi/Spring Security Integration – JSF Login Page

October 9th, 2008 by Lincoln

Tutorials – What a nightmare

Everyone seems to be going through hell to get a fully functional JSF login page working with Spring Security (formerly Acegi,) and yes, I did too, but there’s an EASY way to make this happen. And get this:

  • It takes just five clear and well written lines of Java code.

First, the solution. Afterwards, the dirty details. (Spring 2.5.2 was used for this example.)
You can find a downloadable working example here. There is also a followup article on post-authentication redirecting, here.

Continue reading this article »

Posted in JSF, Java | 58 Comments »

|

Search

Recent Posts

Recent Comments

OcpSoft Agile Management

Recent Tweets:

Posting tweet...

Sponsored By:

Resources

Meta