Use basic auth when anonymous access is disabled on the nexus server