Hi
I am developing a new way to let our developer team authenticate with our production usernames but with a generic password in a development environment. This authentication handler will check if the IP address corresponds to those allowed from a property value and the service definition will authorize the use of this authentication handler.
@Configuration("ldapAuthenticationConfiguration")
@EnableConfigurationProperties(CasConfigurationProperties.class)
@Slf4j
public class LdapdevAuthenticationConfiguration extends LdapAuthenticationConfiguration {
// Added properties
}
As I am a newbie on Java development with Spring, if I extends the LdapAuthenticationHandler to LdapdevAuthenticationHandler and use new properties implemented by extending also LdapAuthenticationConfiguration to LdapdevAuthenticationConfiguration. With the previous code what I have to do?
- Change the
@Configuration("ldapAuthenticationConfiguration")
by@Configuration("ldapdevAuthenticationConfiguration")
- Add the ldapdev section in the configuration model or use the current ldap section?
Thanks in advance
Christian Poirier