From mboxrd@z Thu Jan 1 00:00:00 1970 From: valentin.haenel at gmx.de (Valentin Haenel) Date: Tue, 16 Oct 2012 11:15:23 +0200 Subject: [PATCH 0/3] Implement authorization via external program Message-ID: <1350378927-10834-1-git-send-email-valentin.haenel@gmx.de> 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