Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to authenticate users on TortoiseHg web server?

TortoiseHg web server configuration has an "Allow Push" parameter where I put the users allowed to push changes. But when I try to push I get an "authorization failed" error. How are the users authenticated? Where do the passwords come from?

like image 453
Eduardo Avatar asked Dec 10 '09 03:12

Eduardo


2 Answers

Setting allow_push = * will allow anybody to push to your repository served with hg serve. You should of course only do that on a trusted network. Apart from that, you cannot do authentication with hg serve -- you need a webserver in front of it that will authenticate users.

Please see hgrc for a terse explanation of allow_push and the wiki for a slightly longer explanation about what hg serve is for.

like image 156
Martin Geisler Avatar answered Sep 21 '22 08:09

Martin Geisler


I'm just getting into Mercurial, and from what I can tell (and read in the documentation), the TortoiseHg web server isn't meant to be a permanent solution. The docs seem to steer you towards running either Apache or lighttpd.

You may also want to check out Vampire Basic's tutorial on running Mercurial on Windows.

like image 35
Peter Bernier Avatar answered Sep 21 '22 08:09

Peter Bernier