SVN Repository Authentication using SharpSVN

前端 未结 4 2205
不知归路
不知归路 2020-12-09 08:46

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

4条回答
  •  孤城傲影
    2020-12-09 09:04

    You can also override SSL certificate errors by adding an event handler to SslServerTrustHandlers like this:

    SVN_Conn.Authentication.SslServerTrustHandlers += new EventHandler(SVN_SSL_Override);
    
    static void SVN_SSL_Override(object sender, SharpSvn.Security.SvnSslServerTrustEventArgs e)
    {
        e.AcceptedFailures = e.Failures;
        e.Save = true;
    }
    

提交回复
热议问题