[Restful-rails-general] HTTP::Authentication::Base

Nicola Piccinini pic at superfluo.org
Wed Aug 30 02:45:03 EDT 2006


> I was going to have a base authentication module, and then separate
> modules for Basic, Digest and (possibly) WSSE authentication for Atom
> feeds.  I was then going to have a simple callback method where I
> could lookup the credentials in whatever storage format similar to
> how Coda Hale's simple_http_auth plugin works:
> 
>   http://blog.codahale.com/2006/05/11/basic-http-authentication-with- 
> rails-simple_http_auth/
> 
> I was then going to have separate modules to abstract a few common
> storage methods, like htpasswd files or ActiveRecord objects.  

as far as I can understand this is the same approach of the htpasswd 
plugin, they have authentication classes (currently for basic and digest 
authentication) and ACL callbacks for various storage format:

/vendor/plugins/htpasswd/lib/htpasswd/acls$ ls
active_record.rb  crypted.rb  htdigest.rb  plain.rb
base.rb           digest.rb   htpasswd.rb

I don't know (haven't yet investigated) how much customizable are these 
acls.

Best regards.
-- 
Nicola Piccinini -- http://superfluo.org


More information about the Restful-rails-general mailing list