Catalyst::Authentication::Store::MongoDB - MongoDB backend for Catalyst::Plugin::Authentication
Version 0.02
This module links a subclass of MongoDB to your Catalyst application as a user store for the Authentication plugin.
<Plugin::Authentication> <default> <credential> class Password password_type self_check </credential> <store> class MongoDB user_collection user user_class Catalyst::Authentication::User::Hash model MongoDB database db </store> </default> </Plugin::Authentication>
Then use it as normal
sub login : Local { my ($self, $c) = @_; $c->authenticate({ username => $username, password => $password }); }
The configuration required by Catalyst::Plugin::Authentication to load this store in the first place.
The collection in your database that holds users.
Some subclass of Catalyst::Authentication::User to bless the returned objects as.
The model name that you'd give to $c->model. It is expected that your model is a MongoDB subclass.
The database that your user_collection is a collection in.
Altreus, <altreus at cpan.org>
<altreus at cpan.org>
I'll be amazed if this works for you at all.
Bugs and requests to github please - https://github.com/Altreus/Catalyst-Authentication-Store-MongoDB/issues
You are reading all the support you're likely to get.
Thanks to BOBTFISH for wracking his brains to try to remember how this stuff works.
Copyright 2012 Altreus.
MIT licence. Go nuts.
To install Catalyst::Authentication::Store::MongoDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Authentication::Store::MongoDB
CPAN shell
perl -MCPAN -e shell install Catalyst::Authentication::Store::MongoDB
For more information on module installation, please visit the detailed CPAN module installation guide.