<?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: AuthenticationManager, OAuthAuthorizeHandler and retrys.  Feedback requested. in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-oauthauthorizehandler-and/m-p/748804#M9353</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;...retrying over and over for each item encountered in the web map...&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I've opened a new issue in our product backlog to investigate how we can improve this behavior.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Apr 2020 16:50:01 GMT</pubDate>
    <dc:creator>MichaelBranscomb</dc:creator>
    <dc:date>2020-04-22T16:50:01Z</dc:date>
    <item>
      <title>AuthenticationManager, OAuthAuthorizeHandler and retrys.  Feedback requested.</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-oauthauthorizehandler-and/m-p/748800#M9349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm looking for feedback on some specific behavior with AuthenticationManager and the example implementation of OAuthAuthorizeHandler using the&amp;nbsp;OAuthImplicit type.&amp;nbsp; The implementation of my&amp;nbsp;&lt;SPAN&gt;OAuthAuthorizeHandler&lt;SPAN&gt;&amp;nbsp;is based almost entirely on this&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-dotnet/blob/a3aad07afa1a29fece692648e2337ed1c0de7118/src/WPF/ArcGISRuntime.WPF.Viewer/Samples/Security/OAuth/OAuth.xaml.cs"&gt;esri sample&lt;/A&gt;&amp;nbsp;on github.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Behavior I'm seeing:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I have a webmap stored in ArcGIS enterprise, which is shared with the organization.&amp;nbsp; The web map contains layers that are shared to the organization and&amp;nbsp;a single feature layer that&amp;nbsp;is&amp;nbsp;private&amp;nbsp;and not shared with any group or user.&amp;nbsp; This private layer is intentional, so that I can understand the behavior of a user not having permissions to a layer. When a user opens the web map in the app, they are initially challenged (they can click-thru as our portal is federated with ADFS).&amp;nbsp; The web map loads as expected.&amp;nbsp;&amp;nbsp;The private feature layer that is not shared then causes another challenge.&amp;nbsp; Clicking through this causes&amp;nbsp;another challenge&amp;nbsp;and then another.&amp;nbsp; Looping 6 or 7 times, then an&amp;nbsp;OperationCanceledException is raised.&amp;nbsp; Basically the same effect as if the user cancels the challenge.&amp;nbsp; This challenge/loop behavior will repeat&amp;nbsp;for every layer in the web map that a user lacks permissions for.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;My questions:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;1) Am I understanding this behavior correctly?&amp;nbsp; The AuthenticationManager will attempt to authenticate 6 or 7 times then cancel?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;2) If so, are there any mechanisms available for influencing this behavior? For example, indicating how many retries are allowed before canceling?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thanks in advance for answering the specific questions above.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;Mike&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 19:48:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-oauthauthorizehandler-and/m-p/748800#M9349</guid>
      <dc:creator>Mike_Quetel</dc:creator>
      <dc:date>2020-04-14T19:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: AuthenticationManager, OAuthAuthorizeHandler and retrys.  Feedback requested.</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-oauthauthorizehandler-and/m-p/748801#M9350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone from esri want to take a run at answering this?&amp;nbsp; Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2020 16:20:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-oauthauthorizehandler-and/m-p/748801#M9350</guid>
      <dc:creator>Mike_Quetel</dc:creator>
      <dc:date>2020-04-20T16:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: AuthenticationManager, OAuthAuthorizeHandler and retrys.  Feedback requested.</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-oauthauthorizehandler-and/m-p/748802#M9351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;1) Am I understanding this behavior correctly? The AuthenticationManager will attempt to authenticate 6 or 7 times then cancel?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The AuthenticationManager may retry up to 20 times (that's an internal value). It's not clear why you only saw 6-7 retries, the suggestion from the team was perhaps a task/request timeout.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;2) If so, are there any mechanisms available for influencing this behavior? For example, indicating how many retries are allowed before canceling?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Here is another sample that shows how you might control the retry behavior:&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-runtime-samples-dotnet/blob/master/src/WPF/ArcGISRuntime.WPF.Viewer/Samples/Security/TokenSecuredChallenge/TokenSecuredChallenge.xaml.cs#L117" title="https://github.com/Esri/arcgis-runtime-samples-dotnet/blob/master/src/WPF/ArcGISRuntime.WPF.Viewer/Samples/Security/TokenSecuredChallenge/TokenSecuredChallenge.xaml.cs#L117"&gt;arcgis-runtime-samples-dotnet/TokenSecuredChallenge.xaml.cs at master · Esri/arcgis-runtime-samples-dotnet · GitHub&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2020 19:31:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-oauthauthorizehandler-and/m-p/748802#M9351</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2020-04-20T19:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: AuthenticationManager, OAuthAuthorizeHandler and retrys.  Feedback requested.</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-oauthauthorizehandler-and/m-p/748803#M9352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the feedback and the pointer to another code sample.&amp;nbsp; I was able to adopt some of those ideas and improve the user experience when&amp;nbsp;access problems are encountered within a web map.&amp;nbsp; The default behavior of the&amp;nbsp;AuthenticationHandler retrying over and over for each item encountered in the web map isn't very helpful and tends to make people think they are stuck in a loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2020 13:41:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-oauthauthorizehandler-and/m-p/748803#M9352</guid>
      <dc:creator>Mike_Quetel</dc:creator>
      <dc:date>2020-04-22T13:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: AuthenticationManager, OAuthAuthorizeHandler and retrys.  Feedback requested.</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-oauthauthorizehandler-and/m-p/748804#M9353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;...retrying over and over for each item encountered in the web map...&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I've opened a new issue in our product backlog to investigate how we can improve this behavior.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2020 16:50:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/authenticationmanager-oauthauthorizehandler-and/m-p/748804#M9353</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2020-04-22T16:50:01Z</dc:date>
    </item>
  </channel>
</rss>

