<?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: ArcGIS Server Token in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/arcgis-server-token/m-p/701657#M6275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can&amp;nbsp;create AGSCredential object using&amp;nbsp;&lt;A href="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_credential.html#aec8bf10af5dc8fb5a8302ec0520ad897"&gt;initWithToken:referer:&lt;/A&gt;&amp;nbsp;method and&amp;nbsp;set it on `credential` property of `&lt;SPAN style="background-color: #ffffff;"&gt;AGSServiceFeatureTable&lt;/SPAN&gt;` object. You can either add it to map/scene or call `load` on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jun 2019 14:50:59 GMT</pubDate>
    <dc:creator>NimeshJarecha</dc:creator>
    <dc:date>2019-06-27T14:50:59Z</dc:date>
    <item>
      <title>ArcGIS Server Token</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/arcgis-server-token/m-p/701656#M6274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to reload the AGSServiceFeatureTable, when using ArcGIS Server Service with pre-aquired token.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2019 14:30:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/arcgis-server-token/m-p/701656#M6274</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-06-27T14:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server Token</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/arcgis-server-token/m-p/701657#M6275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can&amp;nbsp;create AGSCredential object using&amp;nbsp;&lt;A href="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_credential.html#aec8bf10af5dc8fb5a8302ec0520ad897"&gt;initWithToken:referer:&lt;/A&gt;&amp;nbsp;method and&amp;nbsp;set it on `credential` property of `&lt;SPAN style="background-color: #ffffff;"&gt;AGSServiceFeatureTable&lt;/SPAN&gt;` object. You can either add it to map/scene or call `load` on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2019 14:50:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/arcgis-server-token/m-p/701657#M6275</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2019-06-27T14:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server Token</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/arcgis-server-token/m-p/701658#M6276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nimesh - I have initialized table with token, I need to update the table with new token after it expired.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2019 14:58:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/arcgis-server-token/m-p/701658#M6276</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-06-27T14:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server Token</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/arcgis-server-token/m-p/701659#M6277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which steps did you take to `&lt;SPAN style="background-color: #ffffff;"&gt;initialize&amp;nbsp;table with token`? Did you follow the steps I outlined above? The `token` property is `readwrite` on `AGSCredential`. You can set a new token on it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Nimesh&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2019 15:08:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/arcgis-server-token/m-p/701659#M6277</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2019-06-27T15:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server Token</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/arcgis-server-token/m-p/701660#M6278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was creating new AGSCredential and setting the table property with the new one, that wasn't working. Now, I just tried updating the token value directly for layer credentials and seems to be working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2019 15:39:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/arcgis-server-token/m-p/701660#M6278</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-06-27T15:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server Token</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/arcgis-server-token/m-p/701661#M6279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is slightly different question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the token value in portal.credentials?.token gets automatically updated when token expires , and new token is generated by Auth Manager.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2019 21:00:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/arcgis-server-token/m-p/701661#M6279</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-06-27T21:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server Token</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/arcgis-server-token/m-p/701662#M6280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, if you provided the `username and password` in the credential. In order to refresh the token it is required. But if you have created credential using `token` and `&lt;SPAN style="color: #362b1f; background-color: #eae3db; font-size: 14px;"&gt;referer&lt;/SPAN&gt;` then we can not refresh it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2019 21:40:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/arcgis-server-token/m-p/701662#M6280</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2019-06-27T21:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server Token</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/arcgis-server-token/m-p/701663#M6281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am just using the auto generated oAuth Page&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;self&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;SPAN class=""&gt;portal&lt;/SPAN&gt; = &lt;SPAN class=""&gt;AGSPortal&lt;/SPAN&gt;.&lt;SPAN class=""&gt;init&lt;/SPAN&gt;(url: &lt;SPAN class=""&gt;URL&lt;/SPAN&gt;(string:AppConfiguration&lt;SPAN class=""&gt;.&lt;/SPAN&gt;portalUrl!, loginRequired: &lt;SPAN class=""&gt;&lt;STRONG&gt;true&lt;/STRONG&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;self&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;SPAN class=""&gt;portal&lt;/SPAN&gt;.&lt;SPAN class=""&gt;load&lt;/SPAN&gt; { (error) -&amp;gt; &lt;SPAN class=""&gt;Void&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;STRONG&gt;in&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //....&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;And at somepoint later in the app, on user defined action, I need to get the token from&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;"self.portal.credentials?.token"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2019 21:58:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/arcgis-server-token/m-p/701663#M6281</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-06-27T21:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server Token</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/arcgis-server-token/m-p/701664#M6282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I am missing some logic here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On portal load completion block,&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;self.portal.credentials?.token is valid for 30 minutes. After 30 minutes in the app, I need use the new value of token, because initial one is expired. But self.portal.credentials?.token still retains value of initial token even after its expired.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Is there a way I can get most current token.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2019 16:42:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/arcgis-server-token/m-p/701664#M6282</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-06-28T16:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server Token</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/arcgis-server-token/m-p/701665#M6283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please post the detail steps you are following? Are you generating token yourself and creating AGSCredential with it? or you just provide the username/password when prompted?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are not&amp;nbsp;&lt;SPAN&gt;generating token yourself then you don't need to do anything whenever token expires, SDK will generate new token.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you are generating token then it becomes your responsibility to generate new token when expired. The `&lt;SPAN style="background-color: #ffffff;"&gt;self.portal.credentials?.token&lt;/SPAN&gt;` will have same value you provided until you replace it with new one.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2019 18:57:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/arcgis-server-token/m-p/701665#M6283</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2019-07-05T18:57:58Z</dc:date>
    </item>
  </channel>
</rss>

