In my setup, I've an upstream system that sends Http requests to my system. These Http requests contains basicAuth token in its header.
I'm using Spring-boot & an external tomcat.
How can I configure my application to check, if the username/password is correct then follow normal flow, otherwise print exception in logs?
In my application there is no UI, so I do not want to show any login page/error page. The examples I've found like one here are based on UI, which is not my requirement.
Also, if the solution requires to configure tomcat, like in this example, how can I do it without web.xml, as I'm using Springboot.