@Configuration
@EnableAuthorizationServer
public class AuthorisationServerConfigurer extends AuthorizationServerConfigurerAdapter {
@Autowired
AuthenticationManager authenticationManager;
//...
@Autowired
public void authenticationManager(final AuthenticationManagerBuilder builder) {
builder.authenticationProvider(getAuthenticationProviderWithBcrypt());
builder.authenticationProvider(getAuthenticationProviderWithMd5());
builder.authenticationProvider(getAuthenticationProviderWithToken());
}
// ...
}