I started trying to migrate the first application from classic to flow-ui.
Adding the dependency on implementation("io.jmix.ldap:jmix-ldap-starter")
based on Jmix version 1.5.1
configuring the LDAP specific application-properties, the application startup fails:
***************************
APPLICATION FAILED TO START
***************************
Description:
Field authenticationManager in io.jmix.core.usersubstitution.impl.UserSubstitutionManagerImpl required a single bean, but 2 were found:
- ldap_AuthenticationManager: defined by method 'ldapAuthenticationManager' in class path resource [io/jmix/autoconfigure/ldap/LdapAutoConfiguration$DefaultLdapSecurityConfiguration.class]
- sec_AuthenticationManager: defined by method 'providerManager' in class path resource [io/jmix/autoconfigure/securityflowui/SecurityFlowuiAutoConfiguration$DefaultFlowuiSecurityConfiguration.class]
Action:
Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed
I could not find a specific documentation using the ldap addon within flow-ui applications.
What is the correct way of using an LDAP authentication in a flow-ui application?