X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=cgi-auth-flexible.git;a=blobdiff_plain;f=caf.pod;h=216410332ba969741638bbd470be110c907944fd;hp=2f57270bdba85ff74f6de4b619172476bbf69c79;hb=22718a11458ca91fa40bcd11270ed1e3606ea12f;hpb=466a236a669f5cc8e382d29435b01ff4ae642aec diff --git a/caf.pod b/caf.pod index 2f57270..2164103 100644 --- a/caf.pod +++ b/caf.pod @@ -367,7 +367,7 @@ Discards the resources (open files, etc.) in the verifier object. =back -=head REQUEST-RELATED FUNCTIONS AND METHODS +=head1 REQUEST-RELATED FUNCTIONS AND METHODS All of these are only valid after C or C has been called. (In the case of C it won't normally be sensible @@ -409,11 +409,11 @@ whenever it is handling anything except an HTML page loads, it must call this function. See L, and L. -C will either return successfully, indicating that all +C will either return successfully, indicating that all is well and the request should proceed, or it will die, like C. -=head RESPONSE-RELATED FUNCTIONS AND METHODS +=head1 RESPONSE-RELATED FUNCTIONS AND METHODS =item C<< $authreq->url_with_query_params($params, [$nonpagetype]) >> @@ -461,18 +461,9 @@ Returns the value of the secret cookie. CGI::Auth::Flexible sets this cookie in the forms generated by C. You may also set it yourself (and indeed you must do so if you use C). -=item C<< $authreq->chain_params() >> - -Returns a hash of the "relevant" parameters to this request, in a form -used by XXX. This is all of the query parameters which are not -related to CGI::Auth::Flexible. The PATH_INFO from the request is -returned as the parameter C<< '' >>. - -xxx why use this function - =back -=head OTHER FUNCTIONS AND METHODS +=head1 OTHER FUNCTIONS AND METHODS =over @@ -508,7 +499,22 @@ class or due to previous requests on the same verifier.) See L. -=item C<< $verifier_or_authreq->($data) | CGI::Auth::Flexible->>> +=item C<< CGI::Auth::Flexible::srcdump_dir_cpio($cgi,$verifier,$dumpdir,$dir,$outfn,$how,$script) >> + +Helper function for implementing the C hook. +Generates a tarball using cpio and includes it in the prepared source +code distribution. + +The arguments are mostly the same as for that hook. C<$dir> is the +root directory at which to start the archive. C<$how> is a short text +string which will be mentioned in the log. + +C<$script> is a shell script fragment which must output a +nul-separated list of filenames (e.g. the output of C). +It is textually surrounded by C<( )> and will be executed with C +in force. Its cwd will be C<$dir>. + +=item C<< $verifier_or_authreq->($data) | CGI::Auth::Flexible-> >> Hashes the supplied data using the hash function specified by the C setting, and converts the result to a string of hex @@ -516,6 +522,198 @@ digits. =back +=head1 REQUEST TYPES + +The C<$reqtype> values understood by C are strings. +They are: + +=over + +=item C + +A top-level HTML page load. May contain confidential information for +the benefit of the logged-in user. + +=item C + +An HTML frame. May contain confidential information for +the benefit of the logged-in user. + +=item C