Catalyst::Authentication::Store::CouchDB::User - The backing user class for the Catalyst::Authentication::Store::CouchDB storage module.
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.
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 <firstname.lastname@example.org>
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.