Search in sources :

Example 1 with GroovyMultifactorAuthenticationProviderBypassEvaluator

use of org.apereo.cas.authentication.bypass.GroovyMultifactorAuthenticationProviderBypassEvaluator in project cas by apereo.

the class SwivelAuthenticationMultifactorProviderBypassConfiguration method swivelGroovyMultifactorAuthenticationProviderBypass.

@ConditionalOnMissingBean(name = "swivelGroovyMultifactorAuthenticationProviderBypass")
@Bean
@RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
public MultifactorAuthenticationProviderBypassEvaluator swivelGroovyMultifactorAuthenticationProviderBypass(final CasConfigurationProperties casProperties) {
    val swivel = casProperties.getAuthn().getMfa().getSwivel();
    val props = swivel.getBypass();
    return new GroovyMultifactorAuthenticationProviderBypassEvaluator(props, swivel.getId());
}
Also used : lombok.val(lombok.val) GroovyMultifactorAuthenticationProviderBypassEvaluator(org.apereo.cas.authentication.bypass.GroovyMultifactorAuthenticationProviderBypassEvaluator) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Example 2 with GroovyMultifactorAuthenticationProviderBypassEvaluator

use of org.apereo.cas.authentication.bypass.GroovyMultifactorAuthenticationProviderBypassEvaluator in project cas by apereo.

the class GoogleAuthenticatorAuthenticationMultifactorProviderBypassConfiguration method googleAuthenticatorGroovyMultifactorAuthenticationProviderBypass.

@ConditionalOnMissingBean(name = "googleAuthenticatorGroovyMultifactorAuthenticationProviderBypass")
@Bean
@RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
public MultifactorAuthenticationProviderBypassEvaluator googleAuthenticatorGroovyMultifactorAuthenticationProviderBypass(final CasConfigurationProperties casProperties) {
    val gauth = casProperties.getAuthn().getMfa().getGauth();
    val props = gauth.getBypass();
    return new GroovyMultifactorAuthenticationProviderBypassEvaluator(props, gauth.getId());
}
Also used : lombok.val(lombok.val) GroovyMultifactorAuthenticationProviderBypassEvaluator(org.apereo.cas.authentication.bypass.GroovyMultifactorAuthenticationProviderBypassEvaluator) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Example 3 with GroovyMultifactorAuthenticationProviderBypassEvaluator

use of org.apereo.cas.authentication.bypass.GroovyMultifactorAuthenticationProviderBypassEvaluator in project cas by apereo.

the class U2FAuthenticationMultifactorProviderBypassConfiguration method u2fGroovyMultifactorAuthenticationProviderBypass.

@ConditionalOnMissingBean(name = "u2fGroovyMultifactorAuthenticationProviderBypass")
@Bean
@RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
public MultifactorAuthenticationProviderBypassEvaluator u2fGroovyMultifactorAuthenticationProviderBypass(final CasConfigurationProperties casProperties) {
    val u2f = casProperties.getAuthn().getMfa().getU2f();
    val props = u2f.getBypass();
    return new GroovyMultifactorAuthenticationProviderBypassEvaluator(props, u2f.getId());
}
Also used : lombok.val(lombok.val) GroovyMultifactorAuthenticationProviderBypassEvaluator(org.apereo.cas.authentication.bypass.GroovyMultifactorAuthenticationProviderBypassEvaluator) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Example 4 with GroovyMultifactorAuthenticationProviderBypassEvaluator

use of org.apereo.cas.authentication.bypass.GroovyMultifactorAuthenticationProviderBypassEvaluator in project cas by apereo.

the class YubiKeyAuthenticationMultifactorProviderBypassConfiguration method yubikeyGroovyMultifactorAuthenticationProviderBypass.

@ConditionalOnMissingBean(name = "yubikeyGroovyMultifactorAuthenticationProviderBypass")
@Bean
@RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
public MultifactorAuthenticationProviderBypassEvaluator yubikeyGroovyMultifactorAuthenticationProviderBypass(final CasConfigurationProperties casProperties) {
    val yubikey = casProperties.getAuthn().getMfa().getYubikey();
    val props = yubikey.getBypass();
    return new GroovyMultifactorAuthenticationProviderBypassEvaluator(props, yubikey.getId());
}
Also used : lombok.val(lombok.val) GroovyMultifactorAuthenticationProviderBypassEvaluator(org.apereo.cas.authentication.bypass.GroovyMultifactorAuthenticationProviderBypassEvaluator) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Example 5 with GroovyMultifactorAuthenticationProviderBypassEvaluator

use of org.apereo.cas.authentication.bypass.GroovyMultifactorAuthenticationProviderBypassEvaluator in project cas by apereo.

the class RadiusTokenAuthenticationMultifactorProviderBypassConfiguration method radiusGroovyMultifactorAuthenticationProviderBypass.

@ConditionalOnMissingBean(name = "radiusGroovyMultifactorAuthenticationProviderBypass")
@Bean
@RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
public MultifactorAuthenticationProviderBypassEvaluator radiusGroovyMultifactorAuthenticationProviderBypass(final CasConfigurationProperties casProperties) {
    val radius = casProperties.getAuthn().getMfa().getRadius();
    val props = radius.getBypass();
    return new GroovyMultifactorAuthenticationProviderBypassEvaluator(props, radius.getId());
}
Also used : lombok.val(lombok.val) GroovyMultifactorAuthenticationProviderBypassEvaluator(org.apereo.cas.authentication.bypass.GroovyMultifactorAuthenticationProviderBypassEvaluator) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

lombok.val (lombok.val)12 GroovyMultifactorAuthenticationProviderBypassEvaluator (org.apereo.cas.authentication.bypass.GroovyMultifactorAuthenticationProviderBypassEvaluator)12 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)11 RefreshScope (org.springframework.cloud.context.config.annotation.RefreshScope)11 Bean (org.springframework.context.annotation.Bean)11 StringUtils (org.apache.commons.lang3.StringUtils)1 DuoSecurityAuthenticationService (org.apereo.cas.adaptors.duo.authn.DuoSecurityAuthenticationService)1 AuthenticationMultifactorAuthenticationProviderBypassEvaluator (org.apereo.cas.authentication.bypass.AuthenticationMultifactorAuthenticationProviderBypassEvaluator)1 ChainingMultifactorAuthenticationProviderBypassEvaluator (org.apereo.cas.authentication.bypass.ChainingMultifactorAuthenticationProviderBypassEvaluator)1 CredentialMultifactorAuthenticationProviderBypassEvaluator (org.apereo.cas.authentication.bypass.CredentialMultifactorAuthenticationProviderBypassEvaluator)1 DefaultChainingMultifactorAuthenticationBypassProvider (org.apereo.cas.authentication.bypass.DefaultChainingMultifactorAuthenticationBypassProvider)1 HttpRequestMultifactorAuthenticationProviderBypassEvaluator (org.apereo.cas.authentication.bypass.HttpRequestMultifactorAuthenticationProviderBypassEvaluator)1 MultifactorAuthenticationProviderBypassEvaluator (org.apereo.cas.authentication.bypass.MultifactorAuthenticationProviderBypassEvaluator)1 NeverAllowMultifactorAuthenticationProviderBypassEvaluator (org.apereo.cas.authentication.bypass.NeverAllowMultifactorAuthenticationProviderBypassEvaluator)1 PrincipalMultifactorAuthenticationProviderBypassEvaluator (org.apereo.cas.authentication.bypass.PrincipalMultifactorAuthenticationProviderBypassEvaluator)1 RegisteredServiceMultifactorAuthenticationProviderBypassEvaluator (org.apereo.cas.authentication.bypass.RegisteredServiceMultifactorAuthenticationProviderBypassEvaluator)1 RegisteredServicePrincipalAttributeMultifactorAuthenticationProviderBypassEvaluator (org.apereo.cas.authentication.bypass.RegisteredServicePrincipalAttributeMultifactorAuthenticationProviderBypassEvaluator)1 RestMultifactorAuthenticationProviderBypassEvaluator (org.apereo.cas.authentication.bypass.RestMultifactorAuthenticationProviderBypassEvaluator)1 TestMultifactorAuthenticationProvider (org.apereo.cas.authentication.mfa.TestMultifactorAuthenticationProvider)1 CasConfigurationProperties (org.apereo.cas.configuration.CasConfigurationProperties)1