[SharpSvn] SharpSVN认证 [英] [SharpSvn] SharpSVN authentication

查看:156
本文介绍了[SharpSvn] SharpSVN认证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在使用夏普SVN,所以我有一个请求:如何在结账前检查凭证?



我想连接到SVN(OK)

检查用户和密码(??)

如果身份验证没问题,请结账。

DirMedia);



如果凭证不好我有例外,但我想验证凭证

在结账前!任何人都可以帮助我???

解决方案

参考 - SVN存储库认证使用SharpSVN [ ^ ]

Quote:

使用SVNClient的Authenticate属性:



 client.Authentication.Clear();  //  清除以前的身份验证 
client.Authentication.DefaultCredentials = new System.Net.NetworkCredential( user 密码);




Hi all,

I'm using Sharp SVN, so I have a request: How can check the credential before checkout?

I want connect to SVN (OK)
Check User and Password (??)
IF authentication is OK, checkout.

Actually I use:

Program: Client.CheckOut(new Uri(Program.SVN_Media_URI),Program.DirMedia);

and if credential is bad I have an exception, but I want verify the credential
BEFORE CHECKOUT !! can any one help me???

解决方案

Refer - SVN Repository Authentication using SharpSVN[^]

Quote:

Use the Authenticate properties of SVNClient:

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



这篇关于[SharpSvn] SharpSVN认证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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