6 Hands-on: A small secured web application

This chapter covers

  • Applying authentication in a hands-on example

  • Defining the user with the UserDetails interface

  • Defining a custom UserDetailsService

  • Using a provided implementation of PasswordEncoder

  • Defining your authentication logic by implementing an AuthenticationProvider

  • Setting the form-login authentication method

We’ve come a long way in these first chapters and have already discussed plenty of details about authentication. But we have applied each of these new details individually. It is time to put together what we learned in a more complex project. This hands-on example helps you to have a better overview of how all the components we discussed so far work together in a real ...

Get Spring Security in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.