Fix for getCredentials

tenantName must be given outside the passwordCredentials array.