def log_in
      response = request('login', { :login => username, :password => password }, false)
      if response.at_xpath('//status').attr('code') == 'ok'
        session_regex  = /BREEZESESSION=([^;]+)/
        @session       = response.fetch('set-cookie').match(session_regex)[1]
        @authenticated = true
      else
        false
      end
    end
def log_in
      response = request('login', { :login => username, :password => password }, false)
      if response.at_xpath('//status').attr('code') == 'ok'
        session_regex  = /BREEZESESSION=([^;]+)/
        @session       = response.fetch('set-cookie').match(session_regex)[1]
        @authenticated = true
      else
        false
      end
    end
Public: Create a new AdobeConnect::Service.

 options - An AdobeConnect::Config object or a hash with the keys:
           :username - An Adobe Connect username.
           :password - The Connect user's password.
           :domain   - The domain for the Connect instance (with protocol
                       prepended).
 Public: Authenticate against the currently configured Connect service.

 Returns a boolean.