Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

CASino ActiveRecord Authentication #184

Open
bynarlogic opened this issue Apr 19, 2017 · 2 comments
Open

CASino ActiveRecord Authentication #184

bynarlogic opened this issue Apr 19, 2017 · 2 comments

Comments

@bynarlogic
Copy link

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
Copy link
Author

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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants