<?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 How to prevent callback of AuthenticationChallengeHandler listener getting triggered multiple times when access token expires? in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-prevent-callback-of/m-p/550136#M21234</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;I am using ESRI online map in my project. To find a route and calculate the estimated time of arrival (ETA) of a place I am using ESRI&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;CODE style="color: #242729; background-color: var(--black-075); border: 0px; padding: 1px 5px;"&gt;RouteTask&lt;/CODE&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;. I have implemented&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;CODE style="color: #242729; background-color: var(--black-075); border: 0px; padding: 1px 5px;"&gt;AuthenticationChallengeHandler&lt;/CODE&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;in a service. The callback method&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;CODE style="color: #242729; background-color: var(--black-075); border: 0px; padding: 1px 5px;"&gt;handleChallenge&lt;/CODE&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE style="color: #242729; background-color: var(--black-075); border: 0px; padding: 1px 5px;"&gt;AuthenticationChallengeHandler&lt;/CODE&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;&amp;nbsp;gets triggered whenever an access token expires. Here we need to write logic to retrieve a new access token. But the problem is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;CODE style="color: #242729; background-color: var(--black-075); border: 0px; padding: 1px 5px;"&gt;handleChallenge&lt;/CODE&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;callback method sometimes gets triggered multiple times. This does not happen all the time. I could not find the exact scenario when it gets triggered multiple times. Is there any way to prevent multiple executions of the callback?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Apr 2020 08:10:07 GMT</pubDate>
    <dc:creator>BuddhaS</dc:creator>
    <dc:date>2020-04-30T08:10:07Z</dc:date>
    <item>
      <title>How to prevent callback of AuthenticationChallengeHandler listener getting triggered multiple times when access token expires?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-prevent-callback-of/m-p/550136#M21234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;I am using ESRI online map in my project. To find a route and calculate the estimated time of arrival (ETA) of a place I am using ESRI&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;CODE style="color: #242729; background-color: var(--black-075); border: 0px; padding: 1px 5px;"&gt;RouteTask&lt;/CODE&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;. I have implemented&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;CODE style="color: #242729; background-color: var(--black-075); border: 0px; padding: 1px 5px;"&gt;AuthenticationChallengeHandler&lt;/CODE&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;in a service. The callback method&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;CODE style="color: #242729; background-color: var(--black-075); border: 0px; padding: 1px 5px;"&gt;handleChallenge&lt;/CODE&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE style="color: #242729; background-color: var(--black-075); border: 0px; padding: 1px 5px;"&gt;AuthenticationChallengeHandler&lt;/CODE&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;&amp;nbsp;gets triggered whenever an access token expires. Here we need to write logic to retrieve a new access token. But the problem is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;CODE style="color: #242729; background-color: var(--black-075); border: 0px; padding: 1px 5px;"&gt;handleChallenge&lt;/CODE&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;callback method sometimes gets triggered multiple times. This does not happen all the time. I could not find the exact scenario when it gets triggered multiple times. Is there any way to prevent multiple executions of the callback?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2020 08:10:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-prevent-callback-of/m-p/550136#M21234</guid>
      <dc:creator>BuddhaS</dc:creator>
      <dc:date>2020-04-30T08:10:07Z</dc:date>
    </item>
  </channel>
</rss>

