Skip to content
Jean-Marc Prieur edited this page Apr 25, 2018 · 4 revisions

Using MSAL.NET with a proxy

If you use an application leveraging MSAL.NET and this application sits behind a proxy, you might wonder how to set the values for this proxy

MSAL.NET does not propose any API to set a proxy, however you can use the system level API: the HttpClients used by MSAL.NET are able to use it.

#using using System.Net;
...
{
 // Set the proxy
 IWebProxy proxy = new WebProxy("http://proxyserver:80", true);
 WebRequest.DefaultWebProxy = proxy;

 // Use MSAL.NET
}

Getting started with MSAL.NET

Acquiring tokens

Desktop/Mobile apps

Web Apps / Web APIs / daemon apps

Advanced topics

News

FAQ

Other resources

Clone this wiki locally