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

前端 未结 3 1224
故里飘歌
故里飘歌 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:23

    What you need for the OAuth piece is to create an LdapUserDetailsService with the same query as you authenticator and inject it into the AuthorizationServerEndpointsConfigurer. I don't think there's any support for creating a UserDetailService in @Configuration style (might be worth opening a ticket for that in JIRA), but it looks like you can do it in XML.

提交回复
热议问题