<?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: Authentication using url and token in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/authentication-using-url-and-token/m-p/1391032#M4687</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/95488"&gt;@JarrettGreen&lt;/a&gt;&amp;nbsp;, could you tell me which automated tool you are using? We are also trying to monitor if our secure services are running. Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2024 11:51:10 GMT</pubDate>
    <dc:creator>WernerGaar</dc:creator>
    <dc:date>2024-03-05T11:51:10Z</dc:date>
    <item>
      <title>Authentication using url and token</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/authentication-using-url-and-token/m-p/516573#M2459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Hi.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I am trying to use token based authentication to get access to a restricted map layer. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I can generate a token using the url:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;myserver&amp;gt;/arcgis/tokens/?request=gettoken&amp;amp;username=&amp;lt;my_user_name&amp;gt;&amp;amp;password=&amp;lt;my_password&amp;gt;&amp;amp;clientid=ref.&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;myserver&amp;gt;&amp;amp;expiration=1440&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Then using the token in the url to access the map layer, I use:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;myserver&amp;gt;/arcgis/rest/services/AIR/MapServer/0‌?token=&amp;lt;mytoken&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;But the url always redirects me to the 'ArcGIS Server REST API Login' screen. Can you help me with this by chance?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thank you!&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 17:09:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/authentication-using-url-and-token/m-p/516573#M2459</guid>
      <dc:creator>MatthewAntognoli</dc:creator>
      <dc:date>2014-07-29T17:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication using url and token</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/authentication-using-url-and-token/m-p/516574#M2460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a work around to this problem. By generating a token like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="jive-link-external-small"&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;/SPAN&gt;&amp;lt;myserver&amp;gt;/arcgis/tokens/?request=gettoken&amp;amp;username=&amp;lt;my_user_name&amp;gt;&amp;amp;password=&amp;lt;my_password&amp;gt;&amp;amp;&lt;SPAN class="jive-link-external-small"&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;/SPAN&gt;&amp;lt;myserver&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just cut out the clientid=ref. because I am not sure what should be used for 'ref.'&amp;nbsp; If you know, please let me know. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 17:38:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/authentication-using-url-and-token/m-p/516574#M2460</guid>
      <dc:creator>MatthewAntognoli</dc:creator>
      <dc:date>2014-07-29T17:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication using url and token</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/authentication-using-url-and-token/m-p/516575#M2461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using an automated tool to verify my secure services are running and to email me if it get anything but an http 200 status code. The redirection to the login page throws a 302 status code. After generating the token and appending to my secure services, half of my services would return a 200&amp;nbsp;and half would return a 302. I found no pattern in hours of testing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had added client=requestip at the end of my query string. I used your method and it seems to work 100% of the time. So bizarre, but thank you for the solution!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2017 19:23:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/authentication-using-url-and-token/m-p/516575#M2461</guid>
      <dc:creator>JarrettGreen</dc:creator>
      <dc:date>2017-08-08T19:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication using url and token</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/authentication-using-url-and-token/m-p/516576#M2462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this suggestion it ended up solving the issue that I was having, but I don't understand why...I am redirected one way and not the other. It is because of the HTTP GET instead of POST??? It must be. I would consider this a bug.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 20:06:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/authentication-using-url-and-token/m-p/516576#M2462</guid>
      <dc:creator>ElizabethNolan</dc:creator>
      <dc:date>2017-10-26T20:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication using url and token</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/authentication-using-url-and-token/m-p/1391032#M4687</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/95488"&gt;@JarrettGreen&lt;/a&gt;&amp;nbsp;, could you tell me which automated tool you are using? We are also trying to monitor if our secure services are running. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 11:51:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/authentication-using-url-and-token/m-p/1391032#M4687</guid>
      <dc:creator>WernerGaar</dc:creator>
      <dc:date>2024-03-05T11:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication using url and token</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/authentication-using-url-and-token/m-p/1391060#M4688</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/29534"&gt;@WernerGaar&lt;/a&gt;&amp;nbsp;This went through several iterations, but I believe the first tool you ask about was Runscope. It was then migrated to a python script with custom http requests. We have since migrated these specific sets of services into ArcGIS Online and no longer require monitoring.&lt;/P&gt;&lt;P&gt;If I were to do this again, I'd look to use the ArcGIS Python API.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 13:19:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/authentication-using-url-and-token/m-p/1391060#M4688</guid>
      <dc:creator>JarrettGreen</dc:creator>
      <dc:date>2024-03-05T13:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication using url and token</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/authentication-using-url-and-token/m-p/1391677#M4692</link>
      <description>&lt;P&gt;Thanks for your reply!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 06:57:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/authentication-using-url-and-token/m-p/1391677#M4692</guid>
      <dc:creator>WernerGaar</dc:creator>
      <dc:date>2024-03-06T06:57:37Z</dc:date>
    </item>
  </channel>
</rss>

