<?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 Best practice for using ArcGIS Server tokens in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/best-practice-for-using-arcgis-server-tokens/m-p/378513#M1804</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the best practice for using ArcGIS Server tokens (&lt;SPAN style="color: #4c4c4c; background-color: #f8f8f8;"&gt;generateToken)&amp;nbsp;&lt;/SPAN&gt;with the REST API? Should I request a new token for every request; or retain the token and request a new one when it nears expiration?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Mar 2020 18:47:47 GMT</pubDate>
    <dc:creator>MichaelThompson</dc:creator>
    <dc:date>2020-03-18T18:47:47Z</dc:date>
    <item>
      <title>Best practice for using ArcGIS Server tokens</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/best-practice-for-using-arcgis-server-tokens/m-p/378513#M1804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the best practice for using ArcGIS Server tokens (&lt;SPAN style="color: #4c4c4c; background-color: #f8f8f8;"&gt;generateToken)&amp;nbsp;&lt;/SPAN&gt;with the REST API? Should I request a new token for every request; or retain the token and request a new one when it nears expiration?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2020 18:47:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/best-practice-for-using-arcgis-server-tokens/m-p/378513#M1804</guid>
      <dc:creator>MichaelThompson</dc:creator>
      <dc:date>2020-03-18T18:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice for using ArcGIS Server tokens</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/best-practice-for-using-arcgis-server-tokens/m-p/378514#M1805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generating a token is extremely quick.&amp;nbsp; I always generate a new one for each request.&amp;nbsp; I think this will eliminate trying a request, creating a exception because the token is expired, generate a new token, and then trying the request again.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2020 19:33:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/best-practice-for-using-arcgis-server-tokens/m-p/378514#M1805</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2020-03-18T19:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice for using ArcGIS Server tokens</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/best-practice-for-using-arcgis-server-tokens/m-p/378515#M1806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I appreciate your response, Jake.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2020 14:05:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/best-practice-for-using-arcgis-server-tokens/m-p/378515#M1806</guid>
      <dc:creator>MichaelThompson</dc:creator>
      <dc:date>2020-03-19T14:05:38Z</dc:date>
    </item>
  </channel>
</rss>

