 
         callback null, url
 
-    }[provider] ? -> callback new KodingError 'No such provider')()
-
 
   @getUrl = secure (client, urlOptions, callback) ->
 
     { provider } = urlOptions
-    { context: { group } } = client
-
-    urlOptions.redirectUri = \
-      "http://#{group}.#{KONFIG.hostname}/-/oauth/#{provider}/callback"
-
-    getUrlFor client, urlOptions, callback
+
+    if _provider = @PROVIDER[provider] and _provider.enabled
+      { context: { group } } = client
+      urlOptions.redirectUri = \
+        "http://#{group}.#{KONFIG.hostname}/-/oauth/#{provider}/callback"
+      _provider.getUrl client, urlOptions, callback
+    else
+      callback NOTSUPPORTEDERR
 
 
   @prependGroupName = (url, groupName) ->

          { url, applicationId, state } = data  if data

          state = "&state=#{state}"

          callback null, "#{url}/oauth/authorize?client_id=#{applicationId}&response_type=code#{state}&redirect_uri=#{redirectUri}"


      facebook: ->

        { clientId } = KONFIG.facebook
        url = "https://facebook.com/dialog/oauth?client_id=#{clientId}&redirect_uri=#{redirectUri}&scope=email"

        callback null, url


      google: ->

        { client_id } = KONFIG.google
        JSession = require './session'
        JSession.one { clientId: client.sessionToken }, (err, session) ->
          return callback err  if err
          state = session._id
          url  = 'https://accounts.google.com/o/oauth2/auth?'
          url += 'scope=https://www.google.com/m8/feeds '

          callback null, url


    # -- LINKEDIN PROVIDER ------------------------------------------------8<--

    linkedin  :
      title   : 'LinkedIn OAuth Provider'
      enabled : false
      getUrl  : (client, urlOptions, callback) ->

        { client_id } = KONFIG.linkedin
        { redirectUri } = urlOptions

        state = crypto.createHash('md5')
          .update((new Date).toString())
          .digest('hex')

        url  = 'https://www.linkedin.com/uas/oauth2/authorization?'
        url += 'response_type=code&'
