title: How to secure spring Boot API with API key and secret
body: <p>I am trying to secure the Spring boot API end points. I would want to pass only api key and secret as part of the header to call the API. I tried this code posted in this link. but getting access denied while calling the api with Authorization in header. <a href="https://stackoverflow.com/questions/48446708/securing-spring-boot-api-with-api-key-and-secret">Securing Spring Boot API with API key and secret</a>
  I would like to know what i should pass as part of the header, so that i can get successful response from the API
  I did the below steps:
  I added the below entry in the application.properties</p>
  
  <pre><code>myapp.http.auth-token-header-name=samplekey
  myapp.http.auth-token=abc123
  </code></pre>
  
  <p>And am trying to pass in the header as below
  Authorization:myapp.http.auth-token-header-name=samplekey,myapp.http.auth-token=abc123</p>