if you are using a reverse proxy it can use authentication in squid proxy itself but if you are using a transparent proxy squid proxy doesn't provide any official document to support authentication
I provide solutions regarding devops and IT Infrasructure and migration . I have 9+ years of collective experience in linux, Jenkins Aws Google cloud, bash/shell script, kubernetes, Docker, CI/CT/CD, Gitlab,Rundeck,Openstack, Python and monitoring /system management tools .