code: def _format_credentials(self):
          
          tenant_name = self.tenant_name or self.username
          tenant_id = self.tenant_id or self.username
          return {"auth": {"passwordCredentials":
                  {"username": tenant_name,
                  "password": self.password,
                  },
                  "tenantId": tenant_id}}
docs: Returns the current credentials in the format expected by
          the authentication service.