Gantry

 view release on metacpan or  search on metacpan

lib/Gantry/Docs/Cookbook.pod  view on Meta::CPAN


For C<Gantry::Plugins::AuthCookie> to work, you need to set up a
database for it to use, or add tables to your app's existing database.
Using a separate database is good in a corporate setting where users
have various access to many different apps.  Combining the auth
tables into an existing database is better for self standing sites.
The samples use a single database, so I'll show that approach first.

There are three essential columns in the user table needed for
authentication: id, user name, and pass word.  The id is for the benifit
of the ORM.  The other fields hold the user's credentials.  The names
of these columns is not fixed by the AuthCookie plugin.  The defaults
are ident and password.  We'll see how to control the names the plugin
uses below.

You are welcome to put additional information in the user rows.  The
user table from the samples has this schema (which was generated by bigtop):

    CREATE TABLE user (
        id INTEGER PRIMARY KEY AUTOINCREMENT,
        active INTEGER,



( run in 0.232 second using v1.01-cache-2.11-cpan-4d50c553e7e )