Fix handling for sources with basic auth

Closes #3132.