[PATCH 0/3] Implement authorization via external program
Valentin Haenel
valentin.haenel at gmx.de
Tue Oct 16 11:15:23 CEST 2012
We needed to support querying gitolite from cgit to authorize authenticated
users and display only those repositories they have access to. In our case the
authentication is handled by apache and the user name is stored in an
environment variable. The first patch implements reading that variable. The
second patch allows querying an external helper. And the third adds an example
script to contrib/ showing how gitolite might be queried.
I would appreciate a ruthless review, since this is my first time doing any cgi
work and I am not too familiar with C.
Carlos Aguado Sanchez (1):
Helper script to interface to gitolite
Valentin Haenel (2):
Add config option user-envvar
Add ability to authorize viewing a repository
cgit.c | 34 ++++++++++++++++++++++++++++++++++
cgit.h | 3 +++
cgitrc.5.txt | 12 ++++++++++++
contrib/gl-check-user | 18 ++++++++++++++++++
4 files changed, 67 insertions(+)
create mode 100755 contrib/gl-check-user
--
1.7.9.5
More information about the CGit
mailing list