Search in sources :

Example 1 with DefaultServiceTicketValidationAuthorizersExecutionPlan

use of org.apereo.cas.validation.DefaultServiceTicketValidationAuthorizersExecutionPlan in project cas by apereo.

the class CasCoreValidationConfiguration method serviceValidationAuthorizers.

@Autowired
@Bean
@ConditionalOnMissingBean(name = "serviceValidationAuthorizers")
public ServiceTicketValidationAuthorizersExecutionPlan serviceValidationAuthorizers(final List<ServiceTicketValidationAuthorizerConfigurer> configurers) {
    final DefaultServiceTicketValidationAuthorizersExecutionPlan plan = new DefaultServiceTicketValidationAuthorizersExecutionPlan();
    configurers.forEach(c -> {
        final String name = StringUtils.removePattern(c.getClass().getSimpleName(), "\\$.+");
        LOGGER.debug("Configuring service ticket validation authorizer execution plan [{}]", name);
        c.configureAuthorizersExecutionPlan(plan);
    });
    return plan;
}
Also used : DefaultServiceTicketValidationAuthorizersExecutionPlan(org.apereo.cas.validation.DefaultServiceTicketValidationAuthorizersExecutionPlan) Autowired(org.springframework.beans.factory.annotation.Autowired) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

DefaultServiceTicketValidationAuthorizersExecutionPlan (org.apereo.cas.validation.DefaultServiceTicketValidationAuthorizersExecutionPlan)1 Autowired (org.springframework.beans.factory.annotation.Autowired)1 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)1 Bean (org.springframework.context.annotation.Bean)1