|
NAMEAuthen::Ticket::Server - Perl extension for implementing ticket authentication. DESCRIPTIONAuthen::Ticket::Server is an abstract class which provides the skeleton upon which a full ticket issuing master authentication server may be built. With appropriate subroutine definitions, the resulting class may provided authentication for either trusted or untrusted client sites. The class may be used to implement a ticket server either as a mod_perl handler (see Authen::Ticket) or as a CGI script (using the object methods). If the server class is a sub-class of Authen::Ticket::Signature (or comparable class), the ticket will automatically be signed. SERVER OBJECTAuthen::Ticket::Server provides an object encapsulating most of the information required to authenticate a user and generate tickets. The following values are contained in the object: $server = new Authen::Ticket::Server;
$$server{_r} -> Apache request object iff running under mod_perl
$$server{stdout} -> object to print to for HTML pages
$$server{query} -> CGI-like object for generating HTML and accessing
form data
$$server{request_uri}
$$server{TicketDomain} -> domain for which ticket is valid
$$server{TicketExpires} -> default ticket lifetime
The class constructor will work with sub-classes without modification. Sub-class initialization should be placed in the initialize subroutine. SUB-CLASSINGA sub-class is required to override any of the methods mentioned in this documentation (e.g., authentication method, HTML forms). Two variables are required in the sub-class package.
GENERAL METHODSThe following methods need not be redefined in any sub-classes.
SUB-CLASS FUNCTIONSThe following conventions are used in these sections: $server -> server object $u -> hashref of user authentication information $t -> hashref of ticket information $s -> additional information for inclusion in a message SUB-CLASS REQUIRED FUNCTIONSAny sub-class of Authen::Ticket::Server must define the following subroutines:
SUB-CLASS RECOMMENDED FUNCTIONSAny sub-class of Authen::Ticket::Server should define the following subroutines:
SUB-CLASS MISCELLANEOUS FUNCTIONSAny sub-class of Authen::Ticket::Server may define the following subroutines:
AUTHORJames G. Smith <jgsmith@tamu.edu> COPYRIGHTCopyright (c) 1999, Texas A&M University. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials
provided with the distribution.
3. Neither the name of the University nor the names of its
contributors may be used to endorse or promote products
derived from this software without specific prior written
permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTERS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. SEE ALSOperl(1), Authen::Ticket(3), Authen::Ticket::Client(3). POD ERRORSHey! The above document had some coding errors, which are explained below:
|