How is mixed authentication/anonymous access implemented
From: Avalon <third-chance_at_gmx.de>
Date: Tue, 28 Dec 2010 14:35:08 +0100
Hi,
SVN features a mixed authentication/anonymous access (see http://svnbook.red-bean.com/nightly/en/svn.serverconfig.httpd.html#svn.serverconfig.httpd.authz.perdir.ex-3).
I want to achieve the same functionality using a PHP script: allow anonymous access until accessing some special content and than request authentification which should be checked according to a
I configured the ".htaccess" file to look similar:
Additionally a PHP script is inside the same folder.
At some point the PHP script "decides" that authentification is required (e.g. when passing a param like "?need-auth=1").
Therefore it sends the following two headers:
Then the user is asked to insert username/password for the basic auth.
How is this performed in SVN for the mixed authentication/anonymous access?
What i do not want is:
I hope to get some enlightenment from the way SVN realizes this feature.
Any feedback is highly appreciated.
Thank you
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.