I am setting up a CAS server with CASino (4.0.2) in Rails (4.2.5). The client is phpCAS 1.3.4+ and Drupal 7. I use Ruby 2.2.2. I hit some redirect issues as shown in attached screenshot.
I believe there are missing return statements in the SessionsController. After adding the following decorator into my project for overriding new() it looks like I avoid the errors.
CASino::SessionsController.class_eval do
def new
tgt = current_ticket_granting_ticket
unless params[:renew] || tgt.nil?
handle_signed_in(tgt)
return
end
if params[:gateway] && params[:service].present?
redirect_to(params[:service])
return
end
end
end
I am setting up a CAS server with CASino (4.0.2) in Rails (4.2.5). The client is phpCAS 1.3.4+ and Drupal 7. I use Ruby 2.2.2. I hit some redirect issues as shown in attached screenshot.
I believe there are missing return statements in the SessionsController. After adding the following decorator into my project for overriding new() it looks like I avoid the errors.