How it works...
The main idea is to create a customized filter chain that will manage the whole access to the application. In this recipe, the authentication procedure for valid users and the anonymous account has been overridden to accommodate some details not inherent to the framework. For instance, the framework recognizes anonymous access, but it does not provide a set of rules for it. The recipe creates an anonymous guest account whose access to the application will be redirected by org.springframework.security.web.AuthenticationEntryPoint to its own content page, which is /deptanon.html. This conveys that the anonymous access is restricted from accessing the /deptform.html, which is only for the authenticated users. The assessment of ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access