use of org.apereo.cas.configuration.model.core.authentication.GrouperPrincipalAttributesProperties in project cas by apereo.
the class CasPersonDirectoryConfiguration method grouperAttributeRepositories.
@ConditionalOnMissingBean(name = "grouperAttributeRepositories")
@Bean
@RefreshScope
public List<IPersonAttributeDao> grouperAttributeRepositories() {
final List<IPersonAttributeDao> list = new ArrayList<>();
final GrouperPrincipalAttributesProperties gp = casProperties.getAuthn().getAttributeRepository().getGrouper();
if (gp.isEnabled()) {
final GrouperPersonAttributeDao dao = new GrouperPersonAttributeDao();
dao.setOrder(gp.getOrder());
LOGGER.debug("Configured Grouper attribute source");
list.add(dao);
}
return list;
}
Aggregations