email is required for basic auth
use setCredentialsByURI properly