使用 SharpSVN 的 SVN 存储库身份验证 [英] SVN Repository Authentication using SharpSVN

查看:28
本文介绍了使用 SharpSVN 的 SVN 存储库身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我如何使用 SharpSVN 库对存储库的用户(SVN 用户)进行身份验证.该存储库只能由这些用户提交.谢谢

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

推荐答案

使用SVNClient的Authenticate属性:

Use the Authenticate properties of SVNClient:

client.Authentication.Clear(); // Clear a previous authentication
client.Authentication.DefaultCredentials = new System.Net.NetworkCredential("user", "password");

这篇关于使用 SharpSVN 的 SVN 存储库身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆