November 2017
Intermediate to advanced
542 pages
14h 24m
English
To assist you in this area, we'll add the ability to view the current account to the JBCP calendar application. We'll use this page to illustrate how the richer person and the inetOrgPerson LDAP schemas can provide additional (optional) information to your LDAP-enabled application.
You may have noticed that this chapter came with an additional controller named AccountController. You can see the relevant code, as follows:
//src/main/java/com/packtpub/springsecurity/web/controllers/AccountController.java ... @RequestMapping("/accounts/my") public String view(Model model) { Authentication authentication = SecurityContextHolder. getContext().getAuthentication(); // null check on authentication omitted Object principal ...Read now
Unlock full access