use of org.apereo.cas.authentication.DefaultAuthenticationContextValidator in project cas by apereo.
the class CasCoreAuthenticationSupportConfiguration method authenticationContextValidator.
@RefreshScope
@Bean
@ConditionalOnMissingBean(name = "authenticationContextValidator")
public AuthenticationContextValidator authenticationContextValidator() {
final MultifactorAuthenticationProperties mfa = casProperties.getAuthn().getMfa();
final String contextAttribute = mfa.getAuthenticationContextAttribute();
final String failureMode = mfa.getGlobalFailureMode();
final String authnAttributeName = mfa.getTrusted().getAuthenticationContextAttribute();
return new DefaultAuthenticationContextValidator(contextAttribute, failureMode, authnAttributeName);
}
Aggregations