Authorize proxy access in code if client is using Microsoft ISA Server

my code gives access to our web service.

WebProxy Proxy = new WebProxy (ProxyURL, ProxyPort); proxy.UseDefaultCredentials = false;

NetworkCredential nc = new NetworkCredential (ProxyLogin, ProxyPassword); proxy.Credentials = nc;

myWebService.Proxy = proxy;

My problem is that the client does not know ProxyLogin and ProxyPassword, especially if it is running Microsoft ISA Server. Company policy does not allow him to know the password and login.

Is there anyway to get the authorization information by code?

0


source to share


1 answer


Unable to get password by code. If this were the case, it would be a security vulnerability.

The user must have proxy access for their account. If he doesn't, then this is the end. If it has access to a proxy, then your application should use its credentials.



proxy.UseDefaultCredentials = true;

      

+3


source







All Articles