Search in sources :

Example 1 with BlockAuthenticationContingencyPlan

use of org.apereo.cas.impl.plans.BlockAuthenticationContingencyPlan in project cas by apereo.

the class ElectronicFenceConfiguration method blockAuthenticationContingencyPlan.

@ConditionalOnMissingBean(name = "blockAuthenticationContingencyPlan")
@Bean
@RefreshScope
public AuthenticationRiskContingencyPlan blockAuthenticationContingencyPlan() {
    final BlockAuthenticationContingencyPlan b = new BlockAuthenticationContingencyPlan();
    configureContingencyPlan(b);
    return b;
}
Also used : BlockAuthenticationContingencyPlan(org.apereo.cas.impl.plans.BlockAuthenticationContingencyPlan) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

BlockAuthenticationContingencyPlan (org.apereo.cas.impl.plans.BlockAuthenticationContingencyPlan)1 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)1 RefreshScope (org.springframework.cloud.context.config.annotation.RefreshScope)1 Bean (org.springframework.context.annotation.Bean)1