views:

61

answers:

2

I'm in need of an authentication method that works with DataMapper. I can see that the authlogic plugin requires the fields

 crypted_password, password_salt, persistence_token

in the User model. Is it enough to just add these fields to the User model definition using DataMapper?

A: 

It would need to be significantly more sophisticated than that, since the APIs are quite different between DataMapper and ActiveRecord. However, it appears at least one person is on the same wavelength as you. Check out this ticket, which has a link to this pastie that integrates authlogic into a User model using DataMapper.

John Feminella
A: 

simplest_auth

is compatible with DataMapper

James