Catalyst::Authentication::Store::CouchDB::User - The backing user class for the Catalyst::Authentication::Store::CouchDB storage module.
version 0.001
The Catalyst::Authentication::Store::CouchDB:User class implements user storage connected to a CouchDB instance.
Internal - not used directly.
Constructor. Connects to the CouchDB instance in the configuration, and fetches the design document that contains the configured view.
Retrieves a user from storage. It queries the configured view, and converts the first document retrieved into a CouchDB document. This is then used as the User backing object
Indicates the features supported by this class.
Returns a list of roles supported by this class. These are stored as an array in the 'roles' field of the User document.
Returns a serialised user for storage in the session. This is a JSON representation of the user.
Given the results of for_session, deserialises the user, and recreates the backing object.
Returns the field $fielname from the backing object.
AUTOLOAD is defined so that calls to missing methods will get converted into a call to get for the field matching the method name. This is convenient for use inside templates, as for example user.name will now return the name field from the user document.
get
user.name
name
This module is heavily based on Catalyst::Authentication::Store::DBIx::Class::User.
None known, but there are bound to be some. Please email the author.
Colin Bradford <cjbradford@gmail.com>
This software is copyright (c) 2011 by Colin Bradford.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Catalyst::Authentication::Store::CouchDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Authentication::Store::CouchDB
CPAN shell
perl -MCPAN -e shell install Catalyst::Authentication::Store::CouchDB
For more information on module installation, please visit the detailed CPAN module installation guide.