Java源码示例:org.springframework.security.oauth2.provider.client.ClientDetailsUserDetailsService
示例1public ClientAndUserDetailsService(ClientDetailsService clients,
UserDetailsService users) {
super();
clients_ = clients;
users_ = users;
clientDetailsWrapper_ = new ClientDetailsUserDetailsService(clients_);
}
@Override
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
ClientDetailsUserDetailsService userDetailsService
= new ClientDetailsUserDetailsService(clientDetailsService);
auth.userDetailsService(userDetailsService);
}