rbCAS / CASino

CASino is a Ruby-based Single Sign-On solution supporting the CAS standard
MIT License
331 stars 189 forks source link

Can't load authenticator class #10

Closed gbonline closed 11 years ago

gbonline commented 11 years ago

Hi, i'm trying this version of Cas server and when i run it in development env all goes well, but when i change env to production, i have an error like Failed to load authenticator 'ActiveRecord'. Maybe you have to include "gem 'casino_core-authenticator-active_record'" in your Gemfile? Error: cannot load such file -- casino_core-authenticator-active_record

I've followed the instructions I found in the Casino site and github pages "install from scratch", for to set the ActiveRecord authenticator, so in the Gemfile 've added gem 'casino_core-authenticator-activerecord' I've had this error also on CasinoApp but i've reinstalled all and now it goes well. i've copied the cas.yml from casinoapp to my-casino and executed the RAILS_ENV=production bundle exec rails s but i don't know why the yml file is parsed so the uppercase A is changed to _a Both Casino and CasinoApp run with rails 3.2.12. what can i do? Another question: i woulk like that ther'is a redirection on logout, not only the link for the next page if params[:url] is present

pencil commented 11 years ago

Installing from scratch is always a bit tricky. I would suggest using the offical CASinoApp.

Anyway... Please make sure you installed at least version 1.1.2 of the casino_core-authenticator-activerecord gem. The parsing of the uppercase A to _a should not be a problem.

pencil commented 11 years ago

And: Is there more output apart from the error message you posted?

gbonline commented 11 years ago

Thank's a lot for answer. I have checked the version of the gem and then updated it to 1.1.2 from 1.1.0 and now the rails s command execute well. I had not realized that Casino use system gems, instead CasinoApp store gems inside the vendor folder so CasinoApp had the last gem version and my-casino haven't.

I would like to customize the layout of Casino server for our applications so i thought that Casino is more simple than casinoapp to customize. About your question on error message: after the error text there was only the functions call stack Can i update the server for redirection on logout? I intend to ad the controls on params service and gateway==1 and if both are valid then the logout will be redirected to service uri, else the logout page will be the actual page. Thank's a lot , i appreciate your work

pencil commented 11 years ago

No, CASinoApp is as easy to customize as the app you created from scratch. But CASinoApp has some helpers like whenever to allow easier maintenance / installation.

The current CAS 3.0 draft has support for what you are looking for:

2.3 /logout

[...] if "service" is specified, the browser might be automatically redirected to the URL specified by "service" after the logout was performed by the CAS server.

Full CAS 3.0 support is already on the schedule. Support for the service parameter will be added soon. :+1:

pencil commented 11 years ago

@gbonline Just to let you know: Support for the service parameter on logout has been added.