October 2018
Intermediate to advanced
590 pages
15h 5m
English
As you can see in the commit record in Figure 10.15, the authentication service in the frontend sends a HTTP POST request to /api/authentications. This is different from the standard way of using Spring Security for authentication. As mentioned earlier, by default, Spring Security will process the login request at the /login path using HTTP POST method and we expect the content type of the request to be application/x-www-form-urlencoded. After successful authentication, by default, Spring Security will redirect the user to a target page. Usually, it is the home page. The redirection will be done using the sendRedirect() method of an instance of HttpServletResponse. When the authentication fails, ...
Read now
Unlock full access