concept Form Login authentication method in category spring

appears as: Form Login authentication method, The Form Login authentication method
Spring Security in Action

This is an excerpt from Manning's book Spring Security in Action.

When developing a web application, you would probably like to present a user-friendly login form where the users can input their credentials. As well, you would like your user to be able to surf authenticated through the web pages after they logged in and be able to log out. For a small web application, you can take advantage of the form login method. In this section, you’ll learn to apply and configure the Form Login authentication method for your application. To achieve this, we’ll write a small web application that uses the form login. Figure 5.12 describes the flow we’ll implement. The examples in this section are part of the project ssia-ch5-ex4.

Figure 5.12 Using the Form Login authentication method. An unauthenticated user is redirected to a form where they can use their credentials to authenticate. Once the application authenticates them, they are redirected to the home page of the application.
  • The Form Login authentication method is highly customizable. Moreover, you can use this method together with the HTTP Basic method.