<?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: Generated Tokens not lasting in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generated-tokens-not-lasting/m-p/676722#M63069</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;True, 10 days should be 14400.&amp;nbsp; Now you have me wondering if I dropped a zero in my urls.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll regenerate another token and see how I go.&amp;nbsp; I take it from your response though that tokens should last the length of their expiration regardless of how many times they are used?&amp;nbsp; Also does anybody know the maximum length token can be generated for?&amp;nbsp; In my experience it seems like two weeks is the max.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jan 2013 21:59:30 GMT</pubDate>
    <dc:creator>DanikBourdeau2</dc:creator>
    <dc:date>2013-01-08T21:59:30Z</dc:date>
    <item>
      <title>Generated Tokens not lasting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generated-tokens-not-lasting/m-p/676720#M63067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;I keep generating tokens here '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://www.arcgis.com/sharing/generateToken" rel="nofollow" target="_blank"&gt;https://www.arcgis.com/sharing/generateToken&lt;/A&gt;&lt;SPAN&gt;?' without any problems.&amp;nbsp; I then use the token to load Feature Services hosted from ArcGIS Online in my web app.&amp;nbsp; The problem is that the tokens never seem to last the length I specify in the url, ie.expiration=1440.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It doesn't seem to matter what I put down, 365 days, 6 months or 10 days the token works only once it seems.&amp;nbsp; Am I not understanding how tokens work?&amp;nbsp; I thought that by setting the expiration to 1440 the token would be good for 10 days?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 12:07:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generated-tokens-not-lasting/m-p/676720#M63067</guid>
      <dc:creator>DanikBourdeau2</dc:creator>
      <dc:date>2013-01-08T12:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Generated Tokens not lasting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generated-tokens-not-lasting/m-p/676721#M63068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I keep generating tokens here 'https://www.arcgis.com/sharing/generateToken?' without any problems.&amp;nbsp; I then use the token to load Feature Services hosted from ArcGIS Online in my web app.&amp;nbsp; The problem is that the tokens never seem to last the length I specify in the url, ie.expiration=1440.&lt;BR /&gt;&lt;BR /&gt;It doesn't seem to matter what I put down, 365 days, 6 months or 10 days the token works only once it seems.&amp;nbsp; Am I not understanding how tokens work?&amp;nbsp; I thought that by setting the expiration to 1440 the token would be good for 10 days?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1440 would be 1 day (24X60). not 10 day.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 12:59:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generated-tokens-not-lasting/m-p/676721#M63068</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2013-01-08T12:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Generated Tokens not lasting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generated-tokens-not-lasting/m-p/676722#M63069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;True, 10 days should be 14400.&amp;nbsp; Now you have me wondering if I dropped a zero in my urls.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll regenerate another token and see how I go.&amp;nbsp; I take it from your response though that tokens should last the length of their expiration regardless of how many times they are used?&amp;nbsp; Also does anybody know the maximum length token can be generated for?&amp;nbsp; In my experience it seems like two weeks is the max.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 21:59:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generated-tokens-not-lasting/m-p/676722#M63069</guid>
      <dc:creator>DanikBourdeau2</dc:creator>
      <dc:date>2013-01-08T21:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Generated Tokens not lasting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generated-tokens-not-lasting/m-p/676723#M63070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The default maximum length is 1 day (1440). &lt;/SPAN&gt;&lt;A href="https://sampleserver6.arcgisonline.com/arcgis/admin/www/doc/tokenManager.html"&gt;https://sampleserver6.arcgisonline.com/arcgis/admin/www/doc/tokenManager.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The longTimeout (up to 1 year, 525600) property can be configured and so each server you access may have a different max age.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2013 13:01:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generated-tokens-not-lasting/m-p/676723#M63070</guid>
      <dc:creator>MattLane</dc:creator>
      <dc:date>2013-01-09T13:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Generated Tokens not lasting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generated-tokens-not-lasting/m-p/676724#M63071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@Matt&amp;nbsp; Thanks for the link&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've had much better luck lately; been using the same token now for quite a few days.&amp;nbsp; Judging from the expiration time stamp that is returned it looks like the maximum length for a token from ArcGIS Online is two weeks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the problem that I was having was because I was constantly generating new tokens rendering the old ones void.&amp;nbsp; I would generate a token and use it one app then generating a new token using it in a different app.&amp;nbsp; When I would go try the first app the token wouldn't work anymore.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess you can only have one valid token per user at one time?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jan 2013 23:32:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generated-tokens-not-lasting/m-p/676724#M63071</guid>
      <dc:creator>DanikBourdeau2</dc:creator>
      <dc:date>2013-01-12T23:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Generated Tokens not lasting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generated-tokens-not-lasting/m-p/676725#M63072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting, but I don't get how I /use/ a token.&amp;nbsp; I have one, and now need to access a layer via HTTPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adding &amp;amp;token=crazylongstringwithlotsofcharacters to the URL doesn't seem to cut it, but I haven't found in the documentation where else to put it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, I believe that once I have a token, I should be able to to into an anonymous/incognito browser window and enter the layer URL I would like to fetch and supply the token somewhere to fetch it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 19:42:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/generated-tokens-not-lasting/m-p/676725#M63072</guid>
      <dc:creator>ThomasGagne</dc:creator>
      <dc:date>2014-09-10T19:42:38Z</dc:date>
    </item>
  </channel>
</rss>

