<?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 Are tokens OK on public feature services? in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/are-tokens-ok-on-public-feature-services/m-p/396237#M1925</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a web app that uses OAuth2 to authenticate Esri named users. I have an access token for the user and, if the feature service is "secured" (not shared with public), I append the token to the feature service to load it (e.g. "[feature service url]?token=[token]") .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It used to be that if I appended the token to a "public" feature service (share with everyone), then I would get an error and the service wouldn't load. That meant I would have to track which services were "secured" and which were "public" and request the data accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed on AGOL the other day when I looked at the details page of a "public" feature service that an access token was appended to it. I thought that was interesting, so I started experimenting. It appears that I can now append an any Esri access token to a "public" feature service and it will still load as long as the token is valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp;3 questions on this topic:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is my understanding correct, that you can append an access token to a "public" feature service and it will still load?&lt;/LI&gt;&lt;LI&gt;If that is correct, when was the change made? Is it documented somewhere?&lt;/LI&gt;&lt;LI&gt;Will that always work in the future? If so, I am going to simplify my codebase and always append an access token to feature services. If it is uncertain, I might need to leave it all in "just in case".&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2019 22:35:42 GMT</pubDate>
    <dc:creator>MattStayner</dc:creator>
    <dc:date>2019-01-15T22:35:42Z</dc:date>
    <item>
      <title>Are tokens OK on public feature services?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/are-tokens-ok-on-public-feature-services/m-p/396237#M1925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a web app that uses OAuth2 to authenticate Esri named users. I have an access token for the user and, if the feature service is "secured" (not shared with public), I append the token to the feature service to load it (e.g. "[feature service url]?token=[token]") .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It used to be that if I appended the token to a "public" feature service (share with everyone), then I would get an error and the service wouldn't load. That meant I would have to track which services were "secured" and which were "public" and request the data accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed on AGOL the other day when I looked at the details page of a "public" feature service that an access token was appended to it. I thought that was interesting, so I started experimenting. It appears that I can now append an any Esri access token to a "public" feature service and it will still load as long as the token is valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp;3 questions on this topic:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is my understanding correct, that you can append an access token to a "public" feature service and it will still load?&lt;/LI&gt;&lt;LI&gt;If that is correct, when was the change made? Is it documented somewhere?&lt;/LI&gt;&lt;LI&gt;Will that always work in the future? If so, I am going to simplify my codebase and always append an access token to feature services. If it is uncertain, I might need to leave it all in "just in case".&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2019 22:35:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/are-tokens-ok-on-public-feature-services/m-p/396237#M1925</guid>
      <dc:creator>MattStayner</dc:creator>
      <dc:date>2019-01-15T22:35:42Z</dc:date>
    </item>
  </channel>
</rss>

