Mozilla::Persona::Validate::Htpasswd - validate the existence via an Apache Htpasswd file
Mozilla::Persona::Validate::Htpasswd is a Mozilla::Persona::Validate
# add to the configation of $domain.json { ... "validate" : { "class" : "Mozilla::Persona::Validator::Htpasswd", "pwfile" : "$path_to_file", }, ... }
The validator object must ensure that the user/password combination is valid. In this case, an htpasswd file (as defined by Apache) is used to authenticate the user. This file can be shared between the website configuration and Persona, but does not need to.
You can use apache's htpasswd or htpasswd2 command to maintain the file.
htpasswd
htpasswd2
-Option--Default pwfile <required>
The htpasswd file. Probably, you want to provide an absolute path. When the password file changes, it will automatically be reloaded.
See "Validation" in Mozilla::Persona::Validate
This module is part of Mozilla-Persona distribution version 0.12, built on November 22, 2012. Website: http://perl.overmeer.net. The code is based on the MulkyID code by Matthias Benkard.
Persona is described at http://www.mozilla.org/persona/
Copyrights of the perl code and the related documentation by 2012 by [Mark Overmeer]. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html
To install Mozilla::Persona, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mozilla::Persona
CPAN shell
perl -MCPAN -e shell install Mozilla::Persona
For more information on module installation, please visit the detailed CPAN module installation guide.