Sha256: 83ec25441bb311ac046f43f8c105ab1cbd1722f36f7e1cf02c1ffd4ef0a7d804

Contents?: true

Size: 626 Bytes

Versions: 94

Compression:

Stored size: 626 Bytes

Contents

class ApplicationController < Rhoconnect::Controller::AppBase
  register Rhoconnect::EndPoint

  post "/login", :rc_handler => :authenticate,
                 :deprecated_route => {:verb => :post, :url => ['/application/clientlogin', '/api/application/clientlogin']} do
    login = params[:login]
    password = params[:password]
    true # do some interesting authentication here...
  end

  get "/rps_login", :rc_handler => :rps_authenticate, 
                    :login_required => true do
    login = params[:login]
    password = params[:password]
    true # optionally handle rhoconnect push authentication...
  end
end

Version data entries

94 entries across 23 versions & 1 rubygems

Version Path
rhoconnect-4.0.4 bench/benchapp/controllers/ruby/application_controller.rb
rhoconnect-4.0.4 generators/templates/application/controllers/ruby/application_controller.rb
rhoconnect-4.0.4 bench/blobapp/controllers/ruby/application_controller.rb
rhoconnect-4.0.4 bench/benchapp/controllers/ruby/application.rb
rhoconnect-4.0.3 bench/benchapp/controllers/ruby/application_controller.rb
rhoconnect-4.0.3 generators/templates/application/controllers/ruby/application_controller.rb
rhoconnect-4.0.3 bench/blobapp/controllers/ruby/application_controller.rb
rhoconnect-4.0.3 bench/benchapp/controllers/ruby/application.rb
rhoconnect-4.0.2 bench/benchapp/controllers/ruby/application_controller.rb
rhoconnect-4.0.2 generators/templates/application/controllers/ruby/application_controller.rb
rhoconnect-4.0.2 bench/benchapp/controllers/ruby/application.rb
rhoconnect-4.0.2 bench/blobapp/controllers/ruby/application_controller.rb
rhoconnect-4.0.1 generators/templates/application/controllers/ruby/application_controller.rb
rhoconnect-4.0.1 bench/benchapp/controllers/ruby/application.rb
rhoconnect-4.0.1 bench/benchapp/controllers/ruby/application_controller.rb
rhoconnect-4.0.1 bench/blobapp/controllers/ruby/application_controller.rb
rhoconnect-4.0.0 bench/benchapp/controllers/ruby/application_controller.rb
rhoconnect-4.0.0 bench/blobapp/controllers/ruby/application_controller.rb
rhoconnect-4.0.0 generators/templates/application/controllers/ruby/application_controller.rb
rhoconnect-4.0.0 bench/benchapp/controllers/ruby/application.rb