Only send basic auth if we have username and secret.