|
NAMECGI::Application::Plugin::Authentication::Display - Generate bits of HTML needed for authenticationDESCRIPTIONThe purpose of this code is to keep display code away from the back-end of authentication management. It is an abstract base class and must be used in conjunction with derived classes. Those derived classes can be used in an number of ways:
METHODSnewThe constructor must be passed the CGI::Application object as the first non-object argument. This allows derived modules to access the authentication information.login_boxThis method will return the HTML for a login box that can be embedded into another page. This is the same login box that is used in the default authen_login runmode that the plugin provides.This function is not implemented in this module. One must use a derived class with an appropriate implementation of this function. logout_formThis returns the simple bit of HTML need to have a logout button. The form has '/?authen_logout=1' as the action but of course this can be changed in derived modules.enforce_protectionThis method is useful when the class is being used in templates to mark a certain template as for authenticated eyes only. So in HTML::Template::Plugin::Dot one might have<TMPL_VAR NAME="authen.enforce_protection"> and one must set "authen" to one of these objects via the "HTML::Template::param" method. If authenticated it will resolve to a simple string, otherwise it will croak. login_titleThis returns the TITLE parameter from the LOGIN_FORM section of the config.is_authenticatedusernamelast_loginlast_accessis_login_timeoutlogin_attemptsThese methods all provide access to the cognate methods on the authentication object. They are provided as templates might find them expressive.BUGSThis is alpha software and as such, the features and interface are subject to change. So please check the Changes file when upgrading.SEE ALSOCGI::Application, perl(1)AUTHORAuthor: Cees Hek <ceeshek@gmail.com>; Co-maintainer: Nicholas Bamber <nicholas@periapt.co.uk>.CREDITSThanks to SiteSuite (http://www.sitesuite.com.au) for funding the development of this plugin and for releasing it to the world.Thanks to Christian Walde for suggesting changes to fix the incompatibility with CGI::Application::Plugin::ActionDispatch and for help with github. LICENCE AND COPYRIGHTCopyright (c) 2005, SiteSuite. All rights reserved. Copyright (c) 2010, Nicholas Bamber. All rights reserved.This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. DISCLAIMER OF WARRANTYBECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
Visit the GSP FreeBSD Man Page Interface. |