I have basic auth setup on haproxy as such:
frontend http bind *:80 log global option httplog acl AuthOK http_auth(CCusers) http-request