How to secure a picker route with http-auth

I have a picker route that accepts an http post from a third party service that I would like to secure via basic http auth. I wasn’t able to find an example of this out there. Any pointers?

Thanks