             odesk.profileUrl        = response.info.profile_url
             odesk.profile           = response
 
-            saveOauthToSession odesk, clientId, provider, (err)->
+            saveOauthToSession odesk, clientId, provider, (err) ->
               if err
-                redirectOauth err, req, res, {provider}
+                redirectOauth err, req, res, { provider }
                 return
 
-              redirectOauth null, req, res, {provider}
+              redirectOauth null, req, res, { provider }
+    # coffeelint: enable=indentation

  signature
}                    = KONFIG[provider]

module.exports = (req, res)->
  {query, cookies} = req
  {oauth_token, oauth_verifier} = query
  {clientId} = cookies

  {JSession} = koding.models

  JSession.one {clientId}, (err, session)->
    if err or not session
      redirectOauth err, req, res, {provider}
      return

    {foreignAuth}        = session
    {username}           = session.data
    {requestTokenSecret} = foreignAuth[provider]

    customHeaders =
      'Accept'     : 'application/json',

provider             = 'odesk'
http                 = require 'https'
koding               = require './bongo'
{ parseString }      = require 'xml2js'
{ OAuth }            = require 'oauth'

{
  redirectOauth
