Ensure basic auth headers are provided

Fixes #76.