title: Spring Boot + Oauth2 client credentials
body: <p>I am trying to protect my microservices on Spring Boot using Oath2 with Client Credentials flow. </p>
  
  <p>By the way, those microservices will only talk each other over the middleware layer, I mean no user credentials are needed to allow the authorization (user login process as Facebook). </p>
  
  <p>I have looked for samples on the Internet showing how to create an authorization and resource server to manage this communication. However I just found examples explaining how to do it using user credentials (three legs). </p>
  
  <p>Does anyone have any sample how to do it in Spring Boot and Oauth2? If it is possible give further details about the scopes used, token exchanging would be grateful.</p>