Search in sources :

Example 1 with CasWebflowEventResolver

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

the class SurrogateWebflowEventResolutionConfiguration method surrogateWebflowEventResolver.

@ConditionalOnMissingBean(name = "surrogateWebflowEventResolver")
@Bean
public CasWebflowEventResolver surrogateWebflowEventResolver(@Qualifier("defaultAuthenticationSystemSupport") final AuthenticationSystemSupport authenticationSystemSupport) {
    final CasWebflowEventResolver r = new SurrogateWebflowEventResolver(authenticationSystemSupport, centralAuthenticationService, servicesManager, ticketRegistrySupport, warnCookieGenerator, authenticationRequestServiceSelectionStrategies, selector, surrogateAuthenticationService);
    this.initialAuthenticationAttemptWebflowEventResolver.addDelegate(r);
    return r;
}
Also used : CasWebflowEventResolver(org.apereo.cas.web.flow.resolver.CasWebflowEventResolver) SurrogateWebflowEventResolver(org.apereo.cas.web.flow.SurrogateWebflowEventResolver) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Example 2 with CasWebflowEventResolver

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

the class OidcConfiguration method oidcAuthenticationContextWebflowEventResolver.

@Autowired
@RefreshScope
@Bean
public CasWebflowEventResolver oidcAuthenticationContextWebflowEventResolver(@Qualifier("defaultAuthenticationSystemSupport") final AuthenticationSystemSupport authenticationSystemSupport) {
    final CasWebflowEventResolver r = new OidcAuthenticationContextWebflowEventEventResolver(authenticationSystemSupport, centralAuthenticationService, servicesManager, ticketRegistrySupport, warnCookieGenerator, authenticationRequestServiceSelectionStrategies, multifactorAuthenticationProviderSelector);
    this.initialAuthenticationAttemptWebflowEventResolver.addDelegate(r);
    return r;
}
Also used : CasWebflowEventResolver(org.apereo.cas.web.flow.resolver.CasWebflowEventResolver) OidcAuthenticationContextWebflowEventEventResolver(org.apereo.cas.oidc.web.flow.OidcAuthenticationContextWebflowEventEventResolver) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) Autowired(org.springframework.beans.factory.annotation.Autowired) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Example 3 with CasWebflowEventResolver

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

the class ElectronicFenceWebflowConfiguration method riskAwareAuthenticationWebflowEventResolver.

@ConditionalOnMissingBean(name = "riskAwareAuthenticationWebflowEventResolver")
@Bean
@Autowired
@RefreshScope
public CasWebflowEventResolver riskAwareAuthenticationWebflowEventResolver(@Qualifier("defaultAuthenticationSystemSupport") final AuthenticationSystemSupport authenticationSystemSupport) {
    final CasWebflowEventResolver r = new RiskAwareAuthenticationWebflowEventResolver(authenticationSystemSupport, centralAuthenticationService, servicesManager, ticketRegistrySupport, warnCookieGenerator, authenticationRequestServiceSelectionStrategies, multifactorAuthenticationProviderSelector, authenticationRiskEvaluator, authenticationRiskMitigator, casProperties);
    this.initialAuthenticationAttemptWebflowEventResolver.addDelegate(r, 0);
    return r;
}
Also used : CasWebflowEventResolver(org.apereo.cas.web.flow.resolver.CasWebflowEventResolver) RiskAwareAuthenticationWebflowEventResolver(org.apereo.cas.web.flow.RiskAwareAuthenticationWebflowEventResolver) RefreshScope(org.springframework.cloud.context.config.annotation.RefreshScope) Autowired(org.springframework.beans.factory.annotation.Autowired) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

CasWebflowEventResolver (org.apereo.cas.web.flow.resolver.CasWebflowEventResolver)3 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)3 Bean (org.springframework.context.annotation.Bean)3 Autowired (org.springframework.beans.factory.annotation.Autowired)2 RefreshScope (org.springframework.cloud.context.config.annotation.RefreshScope)2 OidcAuthenticationContextWebflowEventEventResolver (org.apereo.cas.oidc.web.flow.OidcAuthenticationContextWebflowEventEventResolver)1 RiskAwareAuthenticationWebflowEventResolver (org.apereo.cas.web.flow.RiskAwareAuthenticationWebflowEventResolver)1 SurrogateWebflowEventResolver (org.apereo.cas.web.flow.SurrogateWebflowEventResolver)1