title: Spring Security Authentication using RestTemplate
body: <p>I have 2 spring web apps that provide 2 separate set of services. Web App 1 has Spring Security implemented using a user-based authentication. </p>
  
  <p>Now, Web App 2 needs to access the service of Web App 1. Normally, we would use the RestTemplate class to make requests to other web services. </p>
  
  <p>How do we pass the authentication credentials in the request of Web App 2 to Web App 1</p>