Search in sources :

Example 1 with NoOpCasWebflowEventResolver

use of org.apereo.cas.web.flow.resolver.impl.NoOpCasWebflowEventResolver in project cas by apereo.

the class GrouperMultifactorAuthenticationConfiguration method grouperMultifactorAuthenticationWebflowEventResolver.

@Bean
@RefreshScope
public CasWebflowEventResolver grouperMultifactorAuthenticationWebflowEventResolver() {
    final AbstractCasWebflowEventResolver r;
    if (StringUtils.isNotBlank(casProperties.getAuthn().getMfa().getGrouperGroupField())) {
        r = new GrouperMultifactorAuthenticationPolicyEventResolver(authenticationSystemSupport, centralAuthenticationService, servicesManager, ticketRegistrySupport, warnCookieGenerator, authenticationRequestServiceSelectionStrategies, multifactorAuthenticationProviderSelector, casProperties);
        LOGGER.debug("Activating MFA event resolver based on Grouper groups...");
    } else {
        r = new NoOpCasWebflowEventResolver(authenticationSystemSupport, centralAuthenticationService, servicesManager, ticketRegistrySupport, warnCookieGenerator, authenticationRequestServiceSelectionStrategies, multifactorAuthenticationProviderSelector);
    }
    return r;
}
Also used : AbstractCasWebflowEventResolver(org.apereo.cas.web.flow.resolver.impl.AbstractCasWebflowEventResolver) NoOpCasWebflowEventResolver(org.apereo.cas.web.flow.resolver.impl.NoOpCasWebflowEventResolver) GrouperMultifactorAuthenticationPolicyEventResolver(org.apereo.cas.web.flow.GrouperMultifactorAuthenticationPolicyEventResolver) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) Bean(org.springframework.context.annotation.Bean)

Example 2 with NoOpCasWebflowEventResolver

use of org.apereo.cas.web.flow.resolver.impl.NoOpCasWebflowEventResolver in project cas by apereo.

the class GrouperMultifactorAuthenticationConfiguration method grouperMultifactorAuthenticationWebflowEventResolver.

@Autowired
@Bean
@RefreshScope
public CasWebflowEventResolver grouperMultifactorAuthenticationWebflowEventResolver(@Qualifier("defaultAuthenticationSystemSupport") final AuthenticationSystemSupport authenticationSystemSupport) {
    final AbstractCasWebflowEventResolver r;
    if (StringUtils.isNotBlank(casProperties.getAuthn().getMfa().getGrouperGroupField())) {
        r = new GrouperMultifactorAuthenticationPolicyEventResolver(authenticationSystemSupport, centralAuthenticationService, servicesManager, ticketRegistrySupport, warnCookieGenerator, authenticationRequestServiceSelectionStrategies, multifactorAuthenticationProviderSelector, casProperties);
        LOGGER.debug("Activating MFA event resolver based on Grouper groups...");
    } else {
        r = new NoOpCasWebflowEventResolver(authenticationSystemSupport, centralAuthenticationService, servicesManager, ticketRegistrySupport, warnCookieGenerator, authenticationRequestServiceSelectionStrategies, multifactorAuthenticationProviderSelector);
    }
    this.initialAuthenticationAttemptWebflowEventResolver.addDelegate(r);
    return r;
}
Also used : AbstractCasWebflowEventResolver(org.apereo.cas.web.flow.resolver.impl.AbstractCasWebflowEventResolver) NoOpCasWebflowEventResolver(org.apereo.cas.web.flow.resolver.impl.NoOpCasWebflowEventResolver) GrouperMultifactorAuthenticationPolicyEventResolver(org.apereo.cas.web.flow.GrouperMultifactorAuthenticationPolicyEventResolver) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) Autowired(org.springframework.beans.factory.annotation.Autowired) Bean(org.springframework.context.annotation.Bean)

Aggregations

GrouperMultifactorAuthenticationPolicyEventResolver (org.apereo.cas.web.flow.GrouperMultifactorAuthenticationPolicyEventResolver)2 AbstractCasWebflowEventResolver (org.apereo.cas.web.flow.resolver.impl.AbstractCasWebflowEventResolver)2 NoOpCasWebflowEventResolver (org.apereo.cas.web.flow.resolver.impl.NoOpCasWebflowEventResolver)2 RefreshScope (org.springframework.cloud.context.config.annotation.RefreshScope)2 Bean (org.springframework.context.annotation.Bean)2 Autowired (org.springframework.beans.factory.annotation.Autowired)1