November 2017
Intermediate to advanced
542 pages
14h 24m
English
We need to update DefaultCalendarService to insert the authorities for the user using our custom schema when we add a new CalendarUser class. This is because while we reused the schema for the user definition, we did not define custom authorities in our existing application. Update DefaultCalendarService, as follows:
//src/main/java/com/packtpub/springsecurity/service/DefaultCalendarService.java import org.springframework.jdbc.core.JdbcOperations; ... public class DefaultCalendarService implements CalendarService { ... private final JdbcOperations jdbcOperations; @Autowired public DefaultCalendarService(EventDao eventDao, CalendarUserDao userDao, JdbcOperations jdbcOperations) { ... this.jdbcOperations = jdbcOperations; ...Read now
Unlock full access