Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

with proxy

Bogdan Gavril edited this page Feb 21, 2019 · 14 revisions

you can use the system level API: the HttpClients used by ADAL.NET are able to use it.

using System.Net;
...
{
 // Set the proxy
 IWebProxy proxy = new WebProxy("http://proxyserver:80", true);
 // This does not work on .Net Core https://github.com/dotnet/corefx/issues/7037
 WebRequest.DefaultWebProxy = proxy; 

 // Use ADAL.NET
}
Clone this wiki locally