Class TestConfiguration

java.lang.Object
org.bremersee.spring.security.ldaptive.app.TestConfiguration

@SpringBootConfiguration @EnableAutoConfiguration @ComponentScan(basePackageClasses=TestConfiguration.class) public class TestConfiguration extends Object
The test configuration to test the ldaptive security.
Author:
Christian Bremer
  • Constructor Details

    • TestConfiguration

      public TestConfiguration()
  • Method Details

    • connectionFactory

      @Bean public org.ldaptive.ConnectionFactory connectionFactory()
      Connection factory.
      Returns:
      the connection factory
    • authenticationProperties

      @Bean public LdaptiveAuthenticationProperties authenticationProperties()
      Authentication properties ldaptive authentication properties.
      Returns:
      the ldaptive authentication properties
    • emailToUsernameConverter

      @Bean public org.bremersee.spring.security.core.EmailToUsernameResolver emailToUsernameConverter(org.ldaptive.ConnectionFactory connectionFactory, LdaptiveAuthenticationProperties authenticationProperties)
      Email to username converter email to username converter.
      Parameters:
      connectionFactory - the connection factory
      authenticationProperties - the authentication properties
      Returns:
      the email to username converter
    • authenticationManager

      @Bean public LdaptiveAuthenticationManager authenticationManager(org.ldaptive.ConnectionFactory connectionFactory, LdaptiveAuthenticationProperties authenticationProperties, org.bremersee.spring.security.core.EmailToUsernameResolver emailToUsernameResolver)
      Authentication manager ldaptive authentication manager.
      Parameters:
      connectionFactory - the connection factory
      authenticationProperties - the authentication properties
      emailToUsernameResolver - the email to username converter
      Returns:
      the ldaptive authentication manager