fix #1204: add separate datasource parameter withCredentials

Simple change to allow withCredentials independent of basicAuth. Tests pass.