November 2017
Intermediate to advanced
542 pages
14h 24m
English
We have already discussed how to customize a user's experience during login, but sometimes it is necessary to customize the behavior after login. In this section, we will discuss how Spring Security behaves after login and will provide a simple mechanism to customize this behavior.
In the default configuration, Spring Security has two different flows after successful authentication. The first scenario occurs if a user never visits a resource that requires authentication. In this instance, after a successful login attempt, the user will be sent to the defaultSuccessUrl() method chained to the formLogin() method. If left undefined, defaultSuccessUrl() will be the context root of the application.
If a user requests ...
Read now
Unlock full access