Skip to content

Commit

Permalink
[ISSUE alibaba#8136] Exclude LdapAutoConfiguration (alibaba#8137)
Browse files Browse the repository at this point in the history
  • Loading branch information
onewe authored Apr 18, 2022
1 parent b9dfe3f commit 40fef12
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
import io.jsonwebtoken.io.DecodingException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.ldap.LdapAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.core.env.Environment;
Expand Down Expand Up @@ -58,6 +60,7 @@
* @author Nacos
*/
@EnableGlobalMethodSecurity(prePostEnabled = true)
@EnableAutoConfiguration(exclude = LdapAutoConfiguration.class)
public class NacosAuthConfig extends WebSecurityConfigurerAdapter {

private static final String SECURITY_IGNORE_URLS_SPILT_CHAR = ",";
Expand Down

0 comments on commit 40fef12

Please sign in to comment.