Search in sources :

Example 1 with DefaultAdaptiveAuthenticationPolicy

use of org.apereo.cas.authentication.adaptive.DefaultAdaptiveAuthenticationPolicy in project cas by apereo.

the class CasCoreAuthenticationPolicyConfiguration method adaptiveAuthenticationPolicy.

@ConditionalOnMissingBean(name = "adaptiveAuthenticationPolicy")
@Bean
public AdaptiveAuthenticationPolicy adaptiveAuthenticationPolicy() {
    final DefaultAdaptiveAuthenticationPolicy p = new DefaultAdaptiveAuthenticationPolicy();
    p.setGeoLocationService(this.geoLocationService);
    p.setAdaptiveAuthenticationProperties(casProperties.getAuthn().getAdaptive());
    return p;
}
Also used : DefaultAdaptiveAuthenticationPolicy(org.apereo.cas.authentication.adaptive.DefaultAdaptiveAuthenticationPolicy) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

DefaultAdaptiveAuthenticationPolicy (org.apereo.cas.authentication.adaptive.DefaultAdaptiveAuthenticationPolicy)1 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)1 Bean (org.springframework.context.annotation.Bean)1