use of org.apereo.cas.adaptors.authy.AuthyMultifactorAuthenticationProvider in project cas by apereo.
the class AuthyAuthenticationEventExecutionPlanConfiguration method authyAuthenticatorAuthenticationProvider.
@Bean
@RefreshScope
public MultifactorAuthenticationProvider authyAuthenticatorAuthenticationProvider() {
final AuthyMultifactorAuthenticationProvider p = new AuthyMultifactorAuthenticationProvider();
p.setBypassEvaluator(authyBypassEvaluator());
p.setGlobalFailureMode(casProperties.getAuthn().getMfa().getGlobalFailureMode());
p.setOrder(casProperties.getAuthn().getMfa().getAuthy().getRank());
p.setId(casProperties.getAuthn().getMfa().getAuthy().getId());
return p;
}
Aggregations