How to validate the basic authentication details sent in header using a REST call

I have a scenario where I need to validate the user authentication sent as part of header by validating against the Snaplogic account details. How I can retrieve the incoming authentication details from header. The idea is to achieve this using a basic http call to build a intermediate secure layer in Snaplogic instead of going with API