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