merbful_authentication
This is a port of the rails plugin "restful_authentication" by Rick Olson to the Merb Web Framework.
Please report any bugs / patches to has.sox /at/ gmail /dot/ com
You can find the original at http://svn.techno-weenie.net/projects/plugins/restful_authentication/
To use:
./script/generate authenticated user sessions \
--include-activation
The first parameter specifies the model that gets created in signup (typically a user or account model). A model with migration is created (if migrations are available), as well as a basic controller with the create method.
The second parameter specifies the sessions controller name. This is the controller that handles the actual login/logout function on the site.
The third parameter (--include-activation) generates the code for a Mailer and the required support code. Don't forget to setup your mailer for this.
Currently supported ORMs
Active Record Datamapper
Required Routes
There are some routes required to use this plugin. The actual path is unimportant but the NAME of the route is.
These are located in lib/authenticated_system/authenticated_system_routes.rb
A method is appended to routes.rb to call Authenticated.add_routes
Note:
When using activation don't forget to setup your mailer.
Dependencies
There is a list of dependencies for merbful_authentication and these are loaded automatically.
the dependencies are required in lib/authentication_system/authentication_system_dependencies.rb
Some requiring code is appended to init.rb if it is not already required.
Copyright of original project
Copyright (c) 2005 Rick Olson
Unless noted specifically, all plugins in this repository are MIT licensed:
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.