Mark Overmeer > Mozilla-Persona-0.12 > Mozilla::Persona::Validate::Htpasswd

Download:
Mozilla-Persona-0.12.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.12   Source  

NAME ^

Mozilla::Persona::Validate::Htpasswd - validate the existence via an Apache Htpasswd file

INHERITANCE ^

 Mozilla::Persona::Validate::Htpasswd
   is a Mozilla::Persona::Validate

SYNOPSIS ^

  # add to the configation of $domain.json
  { ...
    "validate" : {
      "class"  : "Mozilla::Persona::Validator::Htpasswd",
      "pwfile" : "$path_to_file",
    },
    ...
  }

DESCRIPTION ^

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.

METHODS ^

Constructors

Mozilla::Persona::Validate::Htpasswd->new(OPTIONS)
 -Option--Default
  pwfile  <required>
pwfile => FILENAME

The htpasswd file. Probably, you want to provide an absolute path. When the password file changes, it will automatically be reloaded.

Validation

$obj->isValid(USER, PASSWORD)

See "Validation" in Mozilla::Persona::Validate

Accessors

$obj->pwfile()

SEE ALSO ^

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 ^

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

syntax highlighting: