spring-security-oauth2 2.0.7 refresh token UserDetailsService Configuration - UserDetailsService is required

前端 未结 3 1255
故里飘歌
故里飘歌 2021-01-02 08:50

I would have one question regarding the configuration of spring-security-oauth2 2.0.7 please. I am doing the Authentication using LDAP via a GlobalAuthenticationConfigurerAd

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-02 09:29

    As advised by Dave Syer, I created a custom LdapUserDetailsService. The working solution can be found under the following tag.

    Application Context

    
    
    
        
        
    
        
            
        
    
        
            
            
            
        
    
        
            
            
            
        
    
        
            
            
        
    
    
    

    Properties

    authentication:
     ldap:
      url: ldap://127.0.0.1:33389/dc=springframework,dc=org
      userSearchBase:
      userDnPatterns: uid={0},ou=people
      groupSearchBase: ou=groups
      groupSearchFilter: (uniqueMember={0})
    

提交回复
热议问题