November 2017
Intermediate to advanced
542 pages
14h 24m
English
We will use CalendarUser credentials to assign an authorized GrantedAuthority to the client. In order to do this, we must either configure our CalendarUserDetailsService class or qualify it with the name userDetailsService, as you can see in the following CalendarUserDetailsService.java file:
//src/main/java/com/packtpub/springsecurity/core/userdetails/ CalendarUserDetailsService.java @Component("userDetailsService") public class CalendarUserDetailsService implements UserDetailsService {...}
Another alternative to defining a custom name for our @Component annotation is to define an @Bean declaration, which we can accomplish using the following entry in our SecurityConfig.java file:
//src/main/java/com/packtpub/springsecurity/configuration/SecurityConfig.java ...Read now
Unlock full access