[PATCH] hgweb/localrepo: pass the request object to hooks

Dirkjan Ochtman dirkjan at ochtman.nl
Fri Nov 6 14:04:23 CST 2009


On Fri, Nov 6, 2009 at 20:55, Sune Foldager <cryo at cyanite.org> wrote:
> I am trying to do what I wrote in the patch: Authorize the users push
> ability depending on what she pushes. I need to inspect the HTTP
> authentication headers, since we do custom auth, and don't use the web
> server for it. That header is in the HTTP_AUTHORIZATION environment
> variable in CGI and WSGI. (All headers get envvar-ized like that).

What do you mean by "don't use the web server for it"? And why can't
you do this through an extension with the hooks we're experimenting
with in the other thread?

Cheers,

Dirkjan


More information about the Mercurial-devel mailing list