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
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.