Search in sources :

Example 1 with U2FMultifactorAuthenticationProvider

use of org.apereo.cas.adaptors.u2f.U2FMultifactorAuthenticationProvider in project cas by apereo.

the class U2FAuthenticationEventExecutionPlanConfiguration method u2fAuthenticationProvider.

@Bean
@RefreshScope
public MultifactorAuthenticationProvider u2fAuthenticationProvider() {
    final U2FMultifactorAuthenticationProvider p = new U2FMultifactorAuthenticationProvider();
    p.setBypassEvaluator(u2fBypassEvaluator());
    p.setGlobalFailureMode(casProperties.getAuthn().getMfa().getGlobalFailureMode());
    p.setOrder(casProperties.getAuthn().getMfa().getU2f().getRank());
    p.setId(casProperties.getAuthn().getMfa().getU2f().getId());
    return p;
}
Also used : U2FMultifactorAuthenticationProvider(org.apereo.cas.adaptors.u2f.U2FMultifactorAuthenticationProvider) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

U2FMultifactorAuthenticationProvider (org.apereo.cas.adaptors.u2f.U2FMultifactorAuthenticationProvider)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