use of org.apereo.cas.authentication.mfa.trigger.AuthenticationAttributeMultifactorAuthenticationTrigger in project cas by apereo.
the class DefaultMultifactorAuthenticationProviderResolverTests method verifyMultipleProvidersWithAuthenticationAttributes.
@Test
public void verifyMultipleProvidersWithAuthenticationAttributes() {
val applicationContext = new StaticApplicationContext();
applicationContext.refresh();
val casProperties = new CasConfigurationProperties();
casProperties.getAuthn().getMfa().getTriggers().getAuthentication().setGlobalAuthenticationAttributeNameTriggers("mfa-authn");
val resolver = new DefaultMultifactorAuthenticationProviderResolver(MultifactorAuthenticationPrincipalResolver.identical());
val trigger = new AuthenticationAttributeMultifactorAuthenticationTrigger(casProperties, resolver, applicationContext);
assertProviderResolutionFromManyProviders(trigger, applicationContext, true);
}
Aggregations