JSF Central - Articles & Books
JSF Central

 
 Home 
 
 Products 
 
 Articles & Books 
 
 Resources 
Articles & Books > Tutorials
Basic Spring Security with ICEfaces
Posted: April 19, 2011Published: December 1, 2009
Publisher: ICESoft
This tutorial will walk you through the process of using Spring Security for authentication of an ICEfaces/JSF web application. Additionally, Spring Security and ICEfaces components will be used to authorize access to different pages and functions in the application.

The application uses Spring Security 2.0 and ICEfaces. It is an adaptation/port of Seema Richard's code using Acegi and JSF. Initially, the application will present a login page to the user. If the user attempts to log in with the correct user name and password, the user will be redirected to a page where a purchase can be made. Spring Security will ensure the user ID has been authenticated and that the user's presence on the purchase page is authorized. The user can visit the purchase page if they have the role ROLE_URLACCESS. Making a purchase is a secure function, so the user will only have the "buy" button enabled if they have the role ROLE_ALLACCESS. This is accomplished using the ICEfaces' enabledOnUserRole attribute.


RSS feed(all feeds)
RSS feed(Tutorials)

The Editor's Desk
Podcasts
Inside Facelets
In the Trenches

Site version 1.83  Report web site problems

Copyright (C) 2003-2015 Virtua, Inc. All Rights Reserved. Java, JavaServer Faces, and all Java-based marks are trademarks or registered trademarks of Oracle Corporation. in the United States and other countries. Virtua, Inc. is independent of Oracle Corporation. All other trademarks are the sole property of their respective owners.