<?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 Token for URL in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/token-for-url/m-p/1262857#M35251</link>
    <description>&lt;P&gt;We have an OMS (outage management system), Pragma, that we want to consume&amp;nbsp;secure Esri services. They have a URL with a token on the end in their config file. They application will then use this token for each call the to the Esri service.&lt;/P&gt;&lt;P&gt;So, the URL would look something like :&lt;/P&gt;&lt;P&gt;"&lt;A href="https://our-server/server/rest/services/Testing/OMS/MapServer/tile/{0}/{2}/{1}/256/png8?token=" target="_blank"&gt;https://our-server/server/rest/services/Testing/OMS/MapServer/tile/{0}/{2}/{1}/256/png8?token=&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;How do I go about creating this token?&lt;/P&gt;</description>
    <pubDate>Wed, 01 Mar 2023 01:48:14 GMT</pubDate>
    <dc:creator>forestknutsen1</dc:creator>
    <dc:date>2023-03-01T01:48:14Z</dc:date>
    <item>
      <title>Token for URL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/token-for-url/m-p/1262857#M35251</link>
      <description>&lt;P&gt;We have an OMS (outage management system), Pragma, that we want to consume&amp;nbsp;secure Esri services. They have a URL with a token on the end in their config file. They application will then use this token for each call the to the Esri service.&lt;/P&gt;&lt;P&gt;So, the URL would look something like :&lt;/P&gt;&lt;P&gt;"&lt;A href="https://our-server/server/rest/services/Testing/OMS/MapServer/tile/{0}/{2}/{1}/256/png8?token=" target="_blank"&gt;https://our-server/server/rest/services/Testing/OMS/MapServer/tile/{0}/{2}/{1}/256/png8?token=&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;How do I go about creating this token?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 01:48:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/token-for-url/m-p/1262857#M35251</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2023-03-01T01:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Token for URL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/token-for-url/m-p/1262865#M35252</link>
      <description>&lt;P&gt;I never used that service and not sure about the language. But generally if&amp;nbsp; I remember correctly, when you have an ArcGIS organizational subscription or an ArcGIS Enterprise license, when you start the session the token is already generated and by using the following code (in Python) on ArcGISPro you can get your token.&amp;nbsp;(not sure about other licenses and online version)&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
# return a dictionary with token and other stuff
token = arcpy.GetSigninToken()
if token is not None:
    print(token.keys()) # keys of that dictionary&lt;/LI-CODE&gt;&lt;P&gt;you can pass your token as &lt;STRONG&gt;token['token']&lt;/STRONG&gt; to the above-mentioned link like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;f"&lt;/STRONG&gt;&lt;A href="https://our-server/server/rest/services/Testing/OMS/MapServer/tile/%7B0%7D/%7B2%7D/%7B1%7D/256/png8?token=" target="_blank" rel="nofollow noopener noreferrer"&gt;https://our-server/server/rest/services/Testing/OMS/MapServer/tile/{0}/{2}/{1}/256/png8?&lt;STRONG&gt;token={ token['token']}&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Just remember once you added the token you don't want to share that link online.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 02:39:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/token-for-url/m-p/1262865#M35252</guid>
      <dc:creator>Mahdi_Ch</dc:creator>
      <dc:date>2023-03-01T02:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Token for URL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/token-for-url/m-p/1263206#M35269</link>
      <description>&lt;P&gt;Thanks for the feedback. Is there not a way to get it from the Portal Admin Site.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 19:17:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/token-for-url/m-p/1263206#M35269</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2023-03-01T19:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Token for URL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/token-for-url/m-p/1263260#M35271</link>
      <description>&lt;P&gt;If the server is federated with ArcGIS Portal, see the &lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/generate-token.htm" target="_blank" rel="noopener"&gt;documentation here.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If it is standalone, &lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/generate-token.htm" target="_blank" rel="noopener"&gt;check here.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 20:53:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/token-for-url/m-p/1263260#M35271</guid>
      <dc:creator>TonyContreras_Frisco_TX</dc:creator>
      <dc:date>2023-03-01T20:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Token for URL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/token-for-url/m-p/1263347#M35274</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/406743"&gt;@TonyContreras_Frisco_TX&lt;/a&gt;&amp;nbsp; Thanks! That works. Any idea how I get it to last longer then two weeks?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 23:55:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/token-for-url/m-p/1263347#M35274</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2023-03-01T23:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Token for URL</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/token-for-url/m-p/1263602#M35279</link>
      <description>&lt;P&gt;You're welcome. I think that 15 days is the max expiration for Portal, which cannot be changed. requests for anything beyond 15 will fail, according to the documentation.&lt;/P&gt;&lt;P&gt;If it is a standalone server, you can modify the &lt;A href="https://developers.arcgis.com/rest/enterprise-administration/server/tokenmanager.htm" target="_blank" rel="noopener"&gt;Token Configuration&lt;/A&gt; to set the Long Timeout (Max timeout length in minutes) using the &lt;A href="https://developers.arcgis.com/rest/enterprise-administration/server/updatetokenconfig.htm" target="_blank" rel="noopener"&gt;REST Admin API&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 17:11:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/token-for-url/m-p/1263602#M35279</guid>
      <dc:creator>TonyContreras_Frisco_TX</dc:creator>
      <dc:date>2023-03-02T17:11:46Z</dc:date>
    </item>
  </channel>
</rss>

