开发者

Mercurial: Acl Extension Sample Of Preventing Web Access

开发者 https://www.devze.com 2022-12-21 02:23 出处:网络
I can see how you can use the Acl Extension to control the push/pull to a particular repository by certian users, but can you control \"WEB\" access to a repository using the Acl Extenstion?I would li

I can see how you can use the Acl Extension to control the push/pull to a particular repository by certian users, but can you control "WEB" access to a repository using the Acl Extenstion? I would like certain repositories to 开发者_运维知识库only show up for certain users.

I am deploying on IIS7, so the solution will need to work in that environment.


I'm assuming you're doing this via the HGWeb CGI script. If you are, you can specify allow_push and allow_read parameters in each project's .hg/hgrc file. If you specify an allow_read other than *, users who are not in the list will not even see the project on the HGWeb project listing page.


Just use normal .htaccess like fonctionnality to restrict which repo are accessible. hg mostly doesn't care about auth and leaves that to the web server.

0

精彩评论

暂无评论...
验证码 换一张
取 消