Hi,
The method you assign to the AuthenticationManager ChallengeHandler should be raised when encountering a 407 Proxy Authentication Required response, allowing you to create and set the required proxy credential. Or alternatively you can do this upfront by creating the credential and adding to the Authentication Manager.
In the sample you referenced, you would add additional logic in the `PromptCredentialAsync` method, for example:
if (requestInfo.AuthenticationType == AuthenticationType.Token)
{
credential = await AuthenticationManager.Current.GenerateCredentialAsync(info.ServiceUri);
}
else if (requestInfo.AuthenticationType == AuthenticationType.Proxy)
{
credential = new ProxyCredential(info.ProxyServiceUri, "Basic", new System.Net.NetworkCredential("...", "..."));
}
Also see https://developers.arcgis.com/net/api-reference/api/netwin/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Sec...