public
Fork of wycats/merb-plugins
Description: Merb Plugins: Even more modules to hook up your Merb installation
Homepage: http://www.merbivore.com
Clone URL: git://github.com/joe/merb-plugins.git
commit  eeb44bb412183772afcd3f52415ddb0df2f20b65
tree    8801c50a6f278968a41d16a9911d3cf0915f4a34
parent  ee3c153c4d7a8fc054ba726b19ebb21bb77090be
merb-plugins / merb_auth
name age message
..
file .gitignore Thu Oct 02 04:27:56 -0700 2008 Adds merb_auth gems to the repository [hassox]
file README.textile Thu Oct 02 04:27:56 -0700 2008 Adds merb_auth gems to the repository [hassox]
directory examples/ Thu Oct 02 04:27:56 -0700 2008 Adds merb_auth gems to the repository [hassox]
directory merb_auth-core/ Thu Oct 02 07:11:32 -0700 2008 Adds gemspecs for merb_auth [hassox]
directory merb_auth-more/ Thu Oct 02 07:11:32 -0700 2008 Adds gemspecs for merb_auth [hassox]
directory slices/ Thu Oct 02 16:02:50 -0700 2008 Updates some naming for rake tasks and files fo... [hassox]
README.textile

MerbAuth – Merb Authentication

An extensible architecture for authentication

  • Stupidly Simple
  • Speaks fluent HTTP, even the errors
  • Pluggable Architecture (so that you can use any authentication algorithms you like)
  • Cascading Authentication (if one method fails, another is attempted, then another. When no methods succeed, authentication fails)

Principles

  1. Sessions are authenticated, not users.
  2. Just because one method of authentication fails doesn’t mean the session, can’t be authenticated another way. This is especially true if your application has an external API as well as a public interface.
  3. HTTP has built-in Errors which every web-browser (should) know how to speak. If you’re application speaks in HTTP Verbs (GET, POST, PUT, DELETE), it should also serve the correct HTTP Errors when things go wrong.