I am using spring oauth2 for authorizations. I have discovered, that when trying to refresh the token I get an error: UserDetailsService is required (interestingly I get this error only on unix machines and on on windows). I am using spring oauth2 version 2.0.7. I was able to localize the problem - from some reason the AuthenticationManager in the DefaultTokenService is not empty and it tries to authenticate the user to check if he still exists. I think it gets initialized because of some spring security vs. spring oauth2 configuration problems. I am not using any custom UserDetailsService, hence it should not authenticate the users at this point. However, when I debug it I see that it tries to use one from the WebSecurityConfigurerAdapter and gets to this error. Even if I provide my custom dummy UserDetailsService, it is not using that one, but tries to use the other one, which is null. Am I missing here something? I can not find out why is this happening?I am using spring oauth2 for authorizations. I