What is proxy authentication types?

+1 vote
asked Jan 9, 2015 by ganeshspy (900 points)
edited Jan 12, 2015

Hi,

What is proxy authentication types? Can you describe more?

When to use proxy AuthenticationMethod as a Basic, Ntlm, Digest; And what is best proxy authentication type for AuthenticationMethod.

 var ftpProxy = new FtpProxy(ftpProxyType, proxySetting.Host, proxySetting.Port)
                           {
                               **AuthenticationMethod = FtpProxyAuthentication.Basic**
                           };

If it is not set then it Automatically takes any AuthenticationMethod in Rebex.Ftp Component.

Applies to: Rebex FTP/SSL

1 Answer

+1 vote
answered Jan 12, 2015 by Tomas Knopp (58,890 points)
edited Jan 12, 2015
 
Best answer

Hello,

the AuthenticationMethod property has effect only for proxies of the FtpProxyType.HttpConnect type:

        FtpProxy proxy = new FtpProxy()
        {
            ProxyType = FtpProxyType.HttpConnect,

            // decide which authentication method will be used for this HTTP CONNECT proxy - defaut is 'Basic'
            AuthenticationMethod = FtpProxyAuthentication.Digest;
        };

To see how the different authentications work, see the following articles at MSDN:

The default AuthenticationMethod is FtpProxyAuthentication.Basic so you only have to set the property if you need a different authentication method.

commented Jan 12, 2015 by ganeshspy (900 points)
edited Jan 12, 2015

Thank You...

...