I'm trying to setup a OAuth2 Resource Server using Spring-Boot. So far this is all working but still the Using default security password: logging shows up which I want to get rid of. This is what my configuration looks like:
@Configuration
@EnableResourceServer
public class OAuthConfiguration extends ResourceServerConfigurerAdapter {
@Override
public void configure(HttpSecurity http) throws Exception {
http.authorizeRequests().anyRequest().authenticated();
super.configure(http);
}
}
I already tried to add @EnableWebSecurity
, @EnableGlobalMethodSecurity
and Force it before and after SecurityAutoConfiguration but nothing seems to help. I also found some post on the net. The suggested config security.basic.enabled=false didn't work for me.
Anyone who knows how this is done correctly?