-
-
11 May 2016 13:04:51 UTC
- Distribution: Catalyst-Authentication-Store-Htpasswd
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Clone repository
- Issues (1)
- Testers (324 / 0 / 0)
- Kwalitee
Bus factor: 13- 88.70% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (24.08KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Authen::Htpasswd
- Catalyst::Plugin::Authentication
- Class::Accessor::Fast
- Crypt::PasswdMD5
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Catalyst::Authentication::Store::Htpasswd::User - A user object representing an entry in an htpasswd file.
DESCRIPTION
This object wraps an Authen::Htpasswd::User object. An instance of it will be returned by
$c->user
when using Catalyst::Authentication::Store::Htpasswd. Methods not defined in this module are passed through to the Authen::Htpasswd::User object. The object stringifies to the username.METHODS
new($store,$user)
Creates a new object from a store object, normally an instance of Catalyst::Authentication::Store::Htpasswd::Backend, and a user object, normally an instance of Authen::Htpasswd::User.
id
Returns the username.
check_password($password)
Returns whether the password is valid.
roles
Returns an array of roles, which is extracted from a comma-separated list in the third field of the htpasswd file.
for_session
Returns the username, which is then stored in the session.
supported_features
Returns data about which featurs this user module supports.
get_object
Returns the underlieing Authen::Htpasswd::User object for this user
AUTHORS
Yuval Kogman
nothingmuch@woobling.org
David Kamholz
dkamholz@cpan.org
Tomas Doran
bobtfish@bobtfish.net
COPYRIGHT & LICENSE
Copyright (c) 2005 the aforementioned authors. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Catalyst::Authentication::Store::Htpasswd, copy and paste the appropriate command in to your terminal.
cpanm Catalyst::Authentication::Store::Htpasswd
perl -MCPAN -e shell install Catalyst::Authentication::Store::Htpasswd
For more information on module installation, please visit the detailed CPAN module installation guide.