     sys.puts "  Running on Port #{SocketStream.config.port}, PID #{process.pid}"
     sys.puts "----------------------------------------------------------------"
     sys.puts "\n"
+
+  _setAuthenticationStrategy: ->
+    authStrategies = {sso: authLib.SSO, crap: authLib.HttpBasic}
+    SocketStream.Authentication = if SocketStream.config.authenticationType? 
+      authStrategies[SocketStream.config.authenticationType] 
+    else
+      authLib.SSO
http    = require 'http'
io      = require 'socket.io@0.6.8'
static  = require 'node-static@0.5.3'

log = null
self = {}

    if SocketStream.config.log_level and SocketStream.config.log_level > 0
      Logger = require('./logger.coffee').Logger
      log = new Logger(SocketStream.config.log_level)
    @_setAuthenticationStrategy()
    
  start: ->
    @server = http.createServer(@_processHttpRequest)
