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. Securing Spring Boot API with API key and secret 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
myapp.http.auth-token-header-name=samplekey
myapp.http.auth-token=abc123
And am trying to pass in the header as below Authorization:myapp.http.auth-token-header-name=samplekey,myapp.http.auth-token=abc123