This is an experimental module to bootstrap the authentication portion of a Catalyst application. It creates a Catalyst model, DBIx::Class::Schema classes, basic templates adjusts the required plugins for you, and configures authentication. There are no options, and it doesn't do much inthe way of error checking for you, so you are recommended to back up your application before using this module.
Run the auth_bootstrap.pl in your application's root dir.
The helper also creates a script in the script dir. To add a user (with an optional role) do:
myapp_auth_admin.pl -user username -passwd password [-role role] [-email firstname.lastname@example.org]
Get the name of the application from Makefile.PL
Creates the sqlite auth db in ./db and makes the dbic schema and catalyst model with Catalyst::Helper::Model::DBIC::Schema
uses Catalyst::Helper to make a ::Controller::Auth
uses ppi to add the auth plugins in the use Catalyst qw// statement
Add the auth configuration in MyApp.pm
make the login, logout and unauth templates
Adds the auth and session dependencies to Makefile.PL
A little script to add a user to the database.
This is experimental, fairly rough code. It's a proof of concept for helper modules for Catalyst that need to alter the application configuration, Makefile.PL and other parts of the application. Bug reports, and patches are encouraged. Report bugs or provide patches to http://rt.cpan.org/NoAuth/Bugs.html?Dist=Catalyst-Helper-AuthDBIC.
Kieren Diment <email@example.com>
Copyright (c) 2008 Kieren Diment
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.