
james at nontrivial
Feb 7, 2012, 8:07 PM
Post #1 of 1
(162 views)
Permalink
|
|
Authentication Using self_check?
|
|
Hello, and thanks in advance. The short version is, how do I use the self_check method to validate a user? I believe it involves extending Catalyst::Authentication::User, and I am having trouble figuring out how to do that. The longer version is that I have an existing system I am trying to convert over to Catalyst that has been running on MySQL for over a decade. All the user passwords are stored using OLD_PASSWORD (not SHA1 like they are by default now), and making thousands of users change their passwords is not an option. So I think my approach should be to somehow implement check_password to use the MySQL OLD_PASSWORD function to authenticate the password. Also, the application has a decade worth of battle hardened SQL queries, so I am not going to be using any standard ORM like DBIx or DBIC, therefore I am trying to use Catalyst::Model::DBI for authentication. My configuration is below, and any help would be greatly appreciated. authentication => { default_realm => 'users', realms => { users => { credential => { class => 'Password', password_field => 'Password', password_type => 'self_check', }, store => { class => 'DBI', user_class => 'MyApp::DAO::User', user_table => 'User', user_key => 'User', user_name => 'UserName', }, }, }, }, -- James D. Bearden (866) 773-3867 http://www.dvns.com mailto://james [at] dvns da Vinci Network Services Doing the impossible is relatively easy. Doing the infeasible is a sticky wicket. _______________________________________________ List: Catalyst [at] lists Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst [at] lists/ Dev site: http://dev.catalyst.perl.org/
|