@@ -0,0 +1,1434 @@
+package net.unicon.cas.mfa.authentication.defaultResolver;%0A%0Aimport java.util.List;%0Aimport java.util.logging.Logger;%0A%0Aimport javax.annotation.PostConstruct;%0Aimport org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToPrincipalResolver;%0Aimport org.jasig.cas.authentication.principal.Credentials;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0Aimport org.springframework.beans.factory.InitializingBean;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.stereotype.Component;%0Aimport org.springframework.web.context.WebApplicationContext;%0A%0A/**%0A * Initialize the application context with the needed webflow mfa configuration%0A * as much as possible to simplify adding mfa into an existing overlay.%0A *%0A * @author Dan Hankins%0A */%0A@Component%0Apublic class DefaultMultiFactorWebflowConfigurer implements InitializingBean %7B%0A    private static final Logger LOGGER = LoggerFactory.getLogger(DuoMultiFactorWebflowConfigurer.class);%0A%0A    @Autowired%0A    private WebApplicationContext context;%0A%0A%0A    @PostConstruct%0A    @Override%0A    public void afterPropertiesSet() throws Exception %7B%0A        try %7B%0A            final List resolvers = this.context.getBean(%22mfaCredentialsToPrincipalResolvers%22, List.class);%0A            resolvers.add(new UsernamePasswordCredentialsToPrincipalResolver());%0A        %7D catch (final Exception e) %7B%0A            LOGGER.error(e.getMessage(), e);%0A        %7D%0A    %7D%0A%7D%0A

Add class to put default credentials-principal resolver into resolver chain.