Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN Repository Authentication using SharpSVN

Can any one tell me how to authenticate users(SVN users) for a repository using SharpSVN Library. That repository should only be committed by those users. Thanks

like image 856
Amila Weerasekara Avatar asked Jun 23 '10 06:06

Amila Weerasekara


1 Answers

Use the Authenticate properties of SVNClient:

client.Authentication.Clear(); // Clear a previous authentication client.Authentication.DefaultCredentials = new System.Net.NetworkCredential("user", "password"); 
like image 122
Jérémie Bertrand Avatar answered Oct 16 '22 19:10

Jérémie Bertrand