def auth_params
      return {} unless Softlayer.configuration
      auth_hash = {
        authenticate: {
          'username' => Softlayer.configuration.username,
          'apiKey' => Softlayer.configuration.api_key
        }
      }
      auth_hash.merge!({
        "clientLegacySession" =>
          {
            "userId" => Softlayer.configuration.impersonate_user,
            "authToken" => Softlayer.configuration.impersonate_token
          }
      }) if Softlayer.impersonating?
      auth_hash
    end
def auth_params
      return {} unless Softlayer.configuration
      auth_hash = {
        authenticate: {
          'username' => Softlayer.configuration.username,
          'apiKey' => Softlayer.configuration.api_key
        }
      }
      auth_hash.merge!({
        "clientLegacySession" =>
          {
            "userId" => Softlayer.configuration.impersonate_user,
            "authToken" => Softlayer.configuration.impersonate_token
          }
      }) if Softlayer.impersonating?
      auth_hash
    end
Authorization hash to use with all SOAP requests