Search in sources :

Example 1 with AuthyMultifactorAuthenticationProvider

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;
}
Also used : AuthyMultifactorAuthenticationProvider(org.apereo.cas.adaptors.authy.AuthyMultifactorAuthenticationProvider) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

AuthyMultifactorAuthenticationProvider (org.apereo.cas.adaptors.authy.AuthyMultifactorAuthenticationProvider)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