Letractively / rubycas-server

Automatically exported from code.google.com/p/rubycas-server
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Configuration parsing of authenticators creates has for single authenticator when array expected #82

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  Set up /etc/rubycas-server/config.yml with a single Authenticator
configuration
2.  Try to log in
3.  The server will fail, because $CONFIG.authenticators is as
HashWithIndifferentAccess, not as an array, as is expected in
lib/casserver/controllers.rb#post at          
auth.configure($CONF.authenticator[auth_index].merge(:auth_index =>
auth_index))

Adding         $CONF.authenticator = [$CONF.authenticator] unless
$CONF.authenticator.is_a?(Array)

above it fixes it, but doesn't feel quite right.

What version of RubyCAS-Server are you using? How is it installed (rubygem,
manual install)? How are you running it (webrick, mongrel, passenger,
etc.)?

passenger, manual install, pulled today

If relevant, please paste your RubyCAS-Server config.yml file here.

authenticator:
  class: CASServer::Authenticators::SQLEncrypted
  database:
    adapter: postgresql
    database: dev_test
    username: myuser
    password: mypass
  user_table: users
  username_column: email
  password_column: crypted_password

Please provide any additional information below.

Original issue reported on code.google.com by thuri...@gmail.com on 30 Sep 2009 at 8:39

GoogleCodeExporter commented 8 years ago
Related to http://github.com/gunark/rubycas-server/issues/#issue/6 and
http://github.com/gunark/rubycas-server/issues/#issue/7

Original comment by matt.zuk...@gmail.com on 30 Sep 2009 at 8:47

GoogleCodeExporter commented 8 years ago

Original comment by matt.zuk...@gmail.com on 30 Sep 2010 at 6:28