rbCAS / CASino

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

CASino ActiveRecord Authentication #184

Open bynarlogic opened 7 years ago

bynarlogic commented 7 years ago

I just built a local CASino Application with the configuration outlined below. I am using the casino and casino-activerecord_authenticator gems. In my other rails application, we are using Authlogic (https://github.com/binarylogic/authlogic). The encrypted password field is called 'crypted password'. I am not able to authenticate with the current configuration. I think I read that CASino supports Bcrypt by default. Is there a way to change my configuration to work with the Authlogic crypted password?

development: <<: *defaults authenticators: my_user_database: authenticator: "ActiveRecord" options: connection: adapter: "mysql2" host: "########" username: "####" password: "####" database: "####_dev" table: "users" username_column: "username" password_column: "crypted_password"

bynarlogic commented 7 years ago

Figured it out. There is an AuthLogic gem! Here is the link to the gem if anyone else is in a similar situation. Thanks!!!

ypcatify/casino-sql_authlogic_authenticator

adrianogoncalves commented 4 years ago

How did you configure it using Authlogic? Could you, please, share it? Thanks in advance!