Search in sources :

Example 1 with AzureAuthenticatorMultifactorAuthenticationProvider

use of org.apereo.cas.adaptors.azure.AzureAuthenticatorMultifactorAuthenticationProvider in project cas by apereo.

the class AzureAuthenticatorAuthenticationEventExecutionPlanConfiguration method azureAuthenticatorAuthenticationProvider.

@Bean
@RefreshScope
public MultifactorAuthenticationProvider azureAuthenticatorAuthenticationProvider() {
    final MultifactorAuthenticationProperties.Azure azure = casProperties.getAuthn().getMfa().getAzure();
    final AzureAuthenticatorMultifactorAuthenticationProvider p = new AzureAuthenticatorMultifactorAuthenticationProvider();
    p.setBypassEvaluator(azureBypassEvaluator());
    p.setGlobalFailureMode(casProperties.getAuthn().getMfa().getGlobalFailureMode());
    p.setOrder(azure.getRank());
    p.setId(azure.getId());
    return p;
}
Also used : AzureAuthenticatorMultifactorAuthenticationProvider(org.apereo.cas.adaptors.azure.AzureAuthenticatorMultifactorAuthenticationProvider) MultifactorAuthenticationProperties(org.apereo.cas.configuration.model.support.mfa.MultifactorAuthenticationProperties) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

AzureAuthenticatorMultifactorAuthenticationProvider (org.apereo.cas.adaptors.azure.AzureAuthenticatorMultifactorAuthenticationProvider)1 MultifactorAuthenticationProperties (org.apereo.cas.configuration.model.support.mfa.MultifactorAuthenticationProperties)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