title: Unexpected behavior of Spring Security OAuth2 client
body: <p>I need to access an OAuth2 protected service from my java microservice. I'm trying to use the spring-security-oauth2 client. But when importing it in maven my rest API starts returning a <code>403 unauthorized</code>. Here is the module I'm importing</p>
  
  <pre><code>&lt;dependency&gt;
     &lt;groupId&gt;org.springframework.security.oauth&lt;/groupId&gt;
     &lt;artifactId&gt;spring-security-oauth2&lt;/artifactId&gt;
     &lt;version&gt;2.3.5.RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>I assume that there is some default config I am missing to find, is there any way of overriding it and only extract the oauth2RestTemplate?</p>
  
  <p>To clarify: I'm not trying to secure my endpoints and do not need any of that, only the client that allows me to call an OAuth2 service without having to deal with the tokens and it's expiration/renewal.</p>