use of com.evolveum.midpoint.authentication.impl.filter.MidpointFilterChainProxy in project midpoint by Evolveum.
the class MidpointWebSecurityConfiguration method springSecurityFilterChain.
@Override
public Filter springSecurityFilterChain() throws Exception {
Filter filter = super.springSecurityFilterChain();
if (filter instanceof FilterChainProxy) {
List<SecurityFilterChain> filters;
if (!((FilterChainProxy) filter).getFilterChains().isEmpty()) {
filters = new ArrayList<SecurityFilterChain>();
filters.addAll(((FilterChainProxy) filter).getFilterChains());
// filters.remove(filters.size() - 1);
} else {
filters = ((FilterChainProxy) filter).getFilterChains();
}
MidpointFilterChainProxy mpFilter = objectObjectPostProcessor.postProcess(new MidpointFilterChainProxy(filters));
if (firewall != null) {
mpFilter.setFirewall(firewall);
}
mpFilter.afterPropertiesSet();
return mpFilter;
}
return filter;
}
Aggregations