Sha256: 9197b8c8e4d9af981534d52ca3c7e66702822f1ea105ca82da542188b91ffb56

Contents?: true

Size: 830 Bytes

Versions: 23

Compression:

Stored size: 830 Bytes

Contents

module Rhoconnect
  module Handler
    module Helpers
      module AuthMethod
        def auth_method(operation,client_id=-1)
          edockey = nil
          docobj = nil
          if client_id == -1 
            edockey = :errors
            docobj = @source
          else
            edockey = :search_errors
            docobj = Client.load(client_id,{:source_name => @source.name})
          end 
          begin
            docobj.flush_data(edockey) if operation == 'login'
            @model.send operation
          rescue Exception => e
            log "Model raised #{operation} exception: #{e}"
            log e.backtrace.join("\n")
            docobj.put_data(edockey,{"#{operation}-error"=>{'message'=>e.message}},true)
            return false
          end
          true
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
rhoconnect-7.6.0 lib/rhoconnect/handler/helpers/auth_method.rb
rhoconnect-7.5.1 lib/rhoconnect/handler/helpers/auth_method.rb
rhoconnect-7.4.1 lib/rhoconnect/handler/helpers/auth_method.rb
rhoconnect-7.1.17 lib/rhoconnect/handler/helpers/auth_method.rb
rhoconnect-6.2.0 lib/rhoconnect/handler/helpers/auth_method.rb
rhoconnect-6.0.11 lib/rhoconnect/handler/helpers/auth_method.rb
rhoconnect-5.5.18 lib/rhoconnect/handler/helpers/auth_method.rb
rhoconnect-5.5.17 lib/rhoconnect/handler/helpers/auth_method.rb
rhoconnect-5.5.15 lib/rhoconnect/handler/helpers/auth_method.rb
rhoconnect-5.5.0.22 lib/rhoconnect/handler/helpers/auth_method.rb
rhoconnect-5.5.2 lib/rhoconnect/handler/helpers/auth_method.rb
rhoconnect-5.5.0.7 lib/rhoconnect/handler/helpers/auth_method.rb
rhoconnect-5.5.0.3 lib/rhoconnect/handler/helpers/auth_method.rb
rhoconnect-5.5.0 lib/rhoconnect/handler/helpers/auth_method.rb
rhoconnect-5.1.1 lib/rhoconnect/handler/helpers/auth_method.rb
rhoconnect-4.0.4 lib/rhoconnect/handler/helpers/auth_method.rb
rhoconnect-4.0.3 lib/rhoconnect/handler/helpers/auth_method.rb
rhoconnect-4.0.2 lib/rhoconnect/handler/helpers/auth_method.rb
rhoconnect-4.0.1 lib/rhoconnect/handler/helpers/auth_method.rb
rhoconnect-4.0.0 lib/rhoconnect/handler/helpers/auth_method.rb