   @legacyClient.headers["Authorization"] = Login.currentAccessToken()
 
   @apiClient = request.defaults
-    auth:
-      user: Login.currentAccessToken()
-      password: "X"
+    headers:
+      Authorization: Login.currentAccessToken()
 
   @forBackend: (backend) =>
     return new Promise (resolve, reject) =>

      url = "/app/#{dataHelpers.getAppId()}/raml.yaml?identification_hash=#{dataHelpers.getIdentificationHash()}"

      steroidsCli.debug "PROVIDER", "GETting from URL: #{url}"

      @apiClient
        method: "get"
        url: url
      , (err, res, body) =>

        if err?

        else
          steroidsCli.debug "PROVIDER", "Creating a new provider #{@name} ID: #{@typeId} to cloud returned failure: #{JSON.stringify(obj)}"
          reject new CloudWriteError err

  fromCloudObject: (obj)=>
    steroidsCli.debug "PROVIDER", "Updating attributes for provider from object: #{JSON.stringify(obj)}"
