November 2017
Intermediate to advanced
542 pages
14h 24m
English
Let's take a look at the following steps for updating the CalendarUserAuthenticationProvider.java file:
//src/main/java/com/packtpub/springsecurity/authentication/ CalendarUserAuthenticationProvider.java public Authentication authenticate(Authentication authentication) throws AuthenticationException { DomainUsernamePasswordAuthenticationToken token = (DomainUsernamePasswordAuthenticationToken) authentication; String userName = token.getName(); String domain = token.getDomain(); String email = userName + "@" + domain; ... previous validation of the user and password ... return new DomainUsernamePasswordAuthenticationToken(user, ...Read now
Unlock full access