You are previewing Spring in Practice.

Spring in Practice

Cover of Spring in Practice by Willie Wheeler with Joshua White Published by Manning Publications
O'Reilly logo

Chapter 6. Authenticating users

This chapter covers

  • Implementing user authentication with Spring Security
  • Customizing a login page via Hibernate
  • Using password hashing, salting, and auto-authentication

Many applications need a way to allow users to authenticate—that is, to say who they are and prove it. In this chapter, you’ll learn how to support this common requirement using Spring Security 3. The first three recipes look at approaches to implementing a login form. The five remaining recipes look at sourcing user data from a persistent store.

6.1. Implementing login and logout with remember-me authentication



Key technologies

Spring Security 3 (including tag libraries)


Spring Security 3, although a large ...

The best content for your career. Discover unlimited learning on demand for around $1/day.