I have implemented this sample in my WPF .net5 application:
https://developers.arcgis.com/net/forms/sample-code/authenticate-with-oauth/
That works till so far perfectly. But, now I have a client who uses a corporate proxy to go to the internet.
So opening the arcgis online login screen fails.
No connection could be made because the target machine actively refused it. (xyz.maps.arcgis.com:443)
---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
Same portal shows the login screen on a machine without a corporate proxy.
Under the hoods the API probably uses the httpclient/webclient which has a Proxy-property.
How I can let this sample work through the corporate proxy and not an arcgis-proxy.