3 package Catalyst::Plugin::Authentication::Store::Htpasswd;
8 use Catalyst::Plugin::Authentication::Store::Htpasswd::Backend;
13 $c->default_auth_store(
14 Catalyst::Plugin::Authentication::Store::Htpasswd::Backend->new(
15 $c->config->{authentication}{htpasswd}
30 Catalyst::Plugin::Authentication::Store::Htpasswd - Authentication
31 database in C<<$c->config>>.
37 Authentication::Store::Htpasswd
38 Authentication::Credential::Password
41 __PACKAGE__->config->{authentication}{htpasswd} = "passwdfile";
44 my ( $self, $c ) = @_;
46 $c->login( $c->req->param("login"), $c->req->param("password"), );
51 This plugin uses C<Authen::Htpasswd> to let your application use C<.htpasswd>
52 files for it's authentication storage.
58 This method will popultate C<< $c->config->{authentication}{store} >> so that
59 L<Catalyst::Plugin::Authentication/default_auth_store> can use it.
63 =head2 $c->config->{authentication}{htpasswd}
65 The path to the htpasswd file.
69 Yuval Kogman C<nothingmuch@woobling.org>
71 David Kamholz C<dkamholz@cpan.org>
77 =head1 COPYRIGHT & LICNESE
79 Copyright (c) 2005 the aforementioned authors. All rights
80 reserved. This program is free software; you can redistribute
81 it and/or modify it under the same terms as Perl itself.