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;
}
Aggregations