use of org.apereo.cas.mfa.simple.CasSimpleMultifactorAuthenticationProvider in project cas by apereo.
the class CasSimpleMultifactorAuthenticationEventExecutionPlanConfiguration method casSimpleMultifactorAuthenticationProvider.
@Bean
@RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
@ConditionalOnMissingBean(name = "casSimpleMultifactorAuthenticationProvider")
public MultifactorAuthenticationProvider casSimpleMultifactorAuthenticationProvider(@Qualifier("casSimpleMultifactorBypassEvaluator") final MultifactorAuthenticationProviderBypassEvaluator casSimpleMultifactorBypassEvaluator, @Qualifier("failureModeEvaluator") final MultifactorAuthenticationFailureModeEvaluator failureModeEvaluator, final CasConfigurationProperties casProperties) {
val simple = casProperties.getAuthn().getMfa().getSimple();
val p = new CasSimpleMultifactorAuthenticationProvider();
p.setBypassEvaluator(casSimpleMultifactorBypassEvaluator);
p.setFailureMode(simple.getFailureMode());
p.setFailureModeEvaluator(failureModeEvaluator);
p.setOrder(simple.getRank());
p.setId(simple.getId());
return p;
}
Aggregations