Mozilla::Persona::Server - persona user validation
# run set-up script first persona setup <options> my $persona = Mozilla::Persona->new(...); my $persona = Mozilla::Persona->fromConfig($fn); $persona->writeConfig($fn);
This module organizes the server-side Persona adminstration, with a few helpers which can have alternative implementations.
Read the configuration from FILENAME (which contains JASON). The OPTIONS overrule the read data. The data is used to instantiate this object via the usual procedure, so see new().
-Option --Default aliases See manpage Mozilla::Persona::Aliases cookie_name <required> domain <required> private_pem <required> validator See manpage Mozilla::Persona::Validate
One used may have more than one valid email address for various purposes. Any of these aliases suffices to login. The HASH of information is passed as configuration for the ::Aliases object.
The name of the cookie, used to administer the persona session.
Your domain, which may be a super-level from the website's domain, or even an other domain you own.
FILENAME which contains the private key, generated by the set-up script.
Used to check whether the user is validated for this domain. The HASH of information is passed as configuration for the ::Aliases object.
Returns the aliases object, an Mozilla::Persona::Aliases extension.
The object gets instantiated on first call to this method the first call to this method, so lazy.
Returns the Crypt::OpenSSL::RSA object which contains the private PEM (private key).
Returns the validator object, an Mozilla::Persona::Validate extension.
Actions are activities requested by the client.
Check whether the user is logged-in.
Handle a login request.
Used then checking the installation: can the script be run?
Handle a sign request.
Return the CGI::Session for this persona user, based of information received via CGI.
Check whether the USER is one of the aliases for the specified EMAIL address.
Write the configuration of this object to the FILENAME.
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.