-
Notifications
You must be signed in to change notification settings - Fork 70
Description
Hi
I am using rubycas-client-rails 2.3.9 and rubycas-server (1.1.1)
On my rubyserver config file i am using postgres. Also for authentication using postgres db, with users table, pointing to name and password columns.
coming to rubycas-client-rails in application.rb
i have added this line
config.rubycas.cas_base_url = "http://192.168.1.52:443" # where cas-server is running
in home controller
before_filter RubyCAS::Filter
is added
when i tries to open this home page, my app is redirecting to cas server login page,
and if i give correct credentials it is try to redirect me to home page of app,
but as it trying to redirect to home path (ie http://localhost:3000/users?ticket=ST-1347606610r360A47D0E4A633DED1)
i am getting this error
NoMethodError (undefined method `inject' for true:TrueClass):
my cas server log is here
carmatec-10.local - - [14/Sep/2012:12:40:10 IST] "GET /login?service=http%3A%2F%2Flocalhost%3A3000%2Fusers HTTP/1.1" 303 0
- -> /login?service=http%3A%2F%2Flocalhost%3A3000%2Fusers
carmatec-10.local - - [14/Sep/2012:12:40:10 IST] "GET /proxyValidate?service=http%3A%2F%2Flocalhost%3A3000%2Fusers&ticket=ST-1347606610r360A47D0E4A633DED1 HTTP/1.1" 200 175 - -> /proxyValidate?service=http%3A%2F%2Flocalhost%3A3000%2Fusers&ticket=ST-1347606610r360A47D0E4A633DED1
here my local application log
Started GET "/users?ticket=ST-1347606610r360A47D0E4A633DED1" for 127.0.0.1 at 2012-09-14 12:40:10 +0530
Processing by UsersController#index as HTML
Parameters: {"ticket"=>"ST-1347606610r360A47D0E4A633DED1"}
Request contains ticket "ST-1347606610r360A47D0E4A633DED1".
Guessed service url: "http://localhost:3000/users"
Requesting CAS response for URI http://192.168.1.52:443/proxyValidate?service=http%3A%2F%2Flocalhost%3A3000%2Fusers&ticket=ST-1347606610r360A47D0E4A633DED1
CAS server responded with #<Net::HTTPOK 200 OK readbody=true>:
<cas:serviceResponse xmlns:cas="http://www.yale.edu/tp/cas">
cas:authenticationSuccess
cas:userdevu/cas:user
/cas:authenticationSuccess
/cas:serviceResponse
Completed in 139ms
NoMethodError (undefined method `inject' for true:TrueClass):
Rendered /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.2ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (5.3ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (14.4ms)