<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: open oauth login screen through corporate proxy in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/open-oauth-login-screen-through-corporate-proxy/m-p/1112508#M10607</link>
    <description>&lt;P&gt;This only applies to standard proxy servers, the ArcGIS resource proxy is not supported.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Oct 2021 18:44:58 GMT</pubDate>
    <dc:creator>MichaelBranscomb</dc:creator>
    <dc:date>2021-10-29T18:44:58Z</dc:date>
    <item>
      <title>open oauth login screen through corporate proxy</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/open-oauth-login-screen-through-corporate-proxy/m-p/1112323#M10601</link>
      <description>&lt;P&gt;I have implemented this sample in my WPF .net5 application:&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/net/forms/sample-code/authenticate-with-oauth/" target="_blank"&gt;https://developers.arcgis.com/net/forms/sample-code/authenticate-with-oauth/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That works till so far perfectly. But, now I have a client who uses a corporate proxy to go to the internet.&lt;BR /&gt;So opening the arcgis online login screen fails.&lt;/P&gt;&lt;P&gt;No connection could be made because the target machine actively refused it. (xxx.maps.arcgis.com:443)&lt;BR /&gt;---&amp;gt; System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.&lt;/P&gt;&lt;P&gt;Same portal shows the login screen on a machine without a corporate proxy.&lt;BR /&gt;Under the hoods the API probably uses the httpclient/webclient which has a Proxy-property.&lt;/P&gt;&lt;P&gt;How I can let this sample work through the corporate proxy and not an arcgis-proxy.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 06:31:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/open-oauth-login-screen-through-corporate-proxy/m-p/1112323#M10601</guid>
      <dc:creator>Mannus_Etten</dc:creator>
      <dc:date>2021-10-29T06:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: open oauth login screen through corporate proxy</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/open-oauth-login-screen-through-corporate-proxy/m-p/1112475#M10605</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The method you assign to the AuthenticationManager ChallengeHandler should be raised when encountering a 407&amp;nbsp;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.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In the sample you referenced, you would add additional logic in the `PromptCredentialAsync` method, for example:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;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("...", "..."));
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also see&amp;nbsp;&lt;A href="https://developers.arcgis.com/net/api-reference/api/netwin/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Security.ProxyCredential.-ctor.html" target="_blank"&gt;https://developers.arcgis.com/net/api-reference/api/netwin/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Security.ProxyCredential.-ctor.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 17:19:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/open-oauth-login-screen-through-corporate-proxy/m-p/1112475#M10605</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2021-10-29T17:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: open oauth login screen through corporate proxy</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/open-oauth-login-screen-through-corporate-proxy/m-p/1112491#M10606</link>
      <description>&lt;P&gt;hi Michael,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;okay, how does the requestInfo know it is AuthenticationType.Proxy?&lt;/P&gt;&lt;P&gt;Does this not apply to the Arcgis Proxy-services?&lt;/P&gt;&lt;P&gt;My question is not about those proxy-services. My proxy is the one you define in the browser for internet access.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 18:09:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/open-oauth-login-screen-through-corporate-proxy/m-p/1112491#M10606</guid>
      <dc:creator>Mannus_Etten</dc:creator>
      <dc:date>2021-10-29T18:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: open oauth login screen through corporate proxy</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/open-oauth-login-screen-through-corporate-proxy/m-p/1112508#M10607</link>
      <description>&lt;P&gt;This only applies to standard proxy servers, the ArcGIS resource proxy is not supported.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 18:44:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/open-oauth-login-screen-through-corporate-proxy/m-p/1112508#M10607</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2021-10-29T18:44:58Z</dc:date>
    </item>
  </channel>
</rss>

