Spring Security Remember Me Example

In this lesson, we will see how to implement the Remember-me authentication so that our web application will be able to remember its users between sessions and allow them access without needing to log in every time. In our case, we…

Spring Security Concurrency Control Example

In this example, we will see how to use Spring Security to add support for concurrent session control to limit the number of active sessions a user can have.   1. Technologies used Spring Security 3.2.5.RELEASE JSF 2.2.8 MySQL 5 Maven 3.0.5 Eclipse 4.4…

Spring Security Resources Access Control

In this example, we will use Spring Security to secure application resources so they can be accessed only by users with the required authorities. The resources, in our case, will be XHTML pages.   1. Technologies used Spring Security 3.2.5.RELEASE JSF 2.2.8 MySQL…

Spring Security Authorize Tag Example

  In Spring Security, the authorize tag is used to secure resources inside the JSP pages, like buttons, labels, links,.. In this example, we will add an HTML link to a JSP page and we will use the authorize tag to…

Spring Security Custom Database Authentication

  In this example, we will see how to create a custom database authentication provider to perform the authentication process. We will use the Spring Security Custom Authentication example and enhance it to make the UserDetailsService using a database to retrieve the user data.  …

Spring Security Custom Authentication

  In this example, we will see how to create a custom authentication provider to handle user authentication, by using a simple implementation of UserDetailsService interface.   1. Technologies used Spring Security 3.2.5.RELEASE JSF 2.2.8 MySQL 5 Maven 3.0.5 Eclipse 4.4 JDK 1.7…

JSF 2 Spring Hibernate Example

  In this example, we will see how to integrate JSF 2, Spring IoC, Spring Security and Hibernate in a simple web application. The application will provide : registration page to add new users, login page to perform authentication and…

Spring Security Password Encryption

  In this example, we will see how to handle database authentication using password encryption. To encrypt a password before storing it in database, the best way is to use a hashing algorithm such as MD5, SHA-1. Spring Security supports the…