author | Alexander Gavrilov <angavrilov@gmail.com> | |
Wed, 5 Nov 2008 22:36:23 +0000 (01:36 +0300) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 7 Nov 2008 00:38:51 +0000 (16:38 -0800) | ||
commit | dd7f5f105a1d4d094a96c5e3f251854f81106be0 | |
tree | 0fc0de6cf471f6af9e390535d9e978ee6376f2df | tree | snapshot |
parent | ec26f098a6593bbd9d396fb7ee74368cdd3eeed3 | commit | diff |
gitweb: Add a per-repository authorization hook.
Add a configuration variable that can be used to specify an
arbitrary subroutine that will be called in the same situations
where $export_ok is checked, and its return value used
to decide whether the repository is to be shown.
This allows the user to implement custom authentication
schemes, for example by issuing a subrequest through mod_perl
and checking if Apache will authorize it.
Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
Acked-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Add a configuration variable that can be used to specify an
arbitrary subroutine that will be called in the same situations
where $export_ok is checked, and its return value used
to decide whether the repository is to be shown.
This allows the user to implement custom authentication
schemes, for example by issuing a subrequest through mod_perl
and checking if Apache will authorize it.
Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
Acked-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/INSTALL | diff | blob | history | |
gitweb/gitweb.perl | diff | blob | history |