You'll need to set up Squid as a transparent proxy with authentication. That is covered in
this document.
By the way, when I googled for "squid transparent proxy authentication", that was the first result that came up.
This document, also relevant, is first when googling for "squid proxy password".