<?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: Aquiring Token in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460200#M17818</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;where you do store user/roles arcgis server ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when you do generate with HTTP Referer what do you write in textbox?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 May 2013 14:17:58 GMT</pubDate>
    <dc:creator>nicogis</dc:creator>
    <dc:date>2013-05-15T14:17:58Z</dc:date>
    <item>
      <title>Aquiring Token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460195#M17813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been spending too much time trying to create a token for my services with no success. Im hoping I can get the help I need from this forum since the ESRI Analyst that has helped me seemed just as confused.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's my scenario:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;I have ArcGIS server 10.1 SP 1 running on Amazon EC2 within a VPC(virtual private cloud). &lt;/UL&gt;&lt;UL&gt;I have a customized version of the arcgis online simple map viewer (JSAPI)&lt;/UL&gt;&lt;UL&gt;The IP address is 10.0.244.20- this is what I use to RDP to the instance (JSAPI)&lt;/UL&gt;&lt;UL&gt;Staff accesses the map using &lt;A href="http://gismaps/roadmap/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://gismaps/roadmap/index.html&lt;/A&gt;&lt;/UL&gt;&lt;UL&gt;Public accesses the map using &lt;A href="http://gismaps.carlsbadca.gov/roadmap/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://gismaps.carlsbadca.gov/roadmap/index.html&lt;/A&gt;&lt;/UL&gt;&lt;UL&gt;Both gismaps and gismaps.carlsbadca.gov are pointers to 10.0.244.20&lt;/UL&gt;&lt;UL&gt;I tried using both the arcgis account and the AGS admin account for the token and had no luck&lt;/UL&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; webmap.itemData = {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "operationalLayers": [
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "url": "http://10.0.244.20/arcgis/rest/services/publicAGS/trafficStatus/MapServer/1",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "id": "trafficStatusMobile_5116",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "visibility": true,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "opacity": 1,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "title": "Carlsbad Boundary"
&amp;nbsp;&amp;nbsp;&amp;nbsp; },
 {
&amp;nbsp;&amp;nbsp;&amp;nbsp; "url": "http://10.0.244.20/arcgis/rest/services/publicAGS/trafficStatus/MapServer/0",
&amp;nbsp;&amp;nbsp;&amp;nbsp; //"id": "trafficStatusMobile_6847",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "visibility": true,
&amp;nbsp;&amp;nbsp;&amp;nbsp; "opacity": 1,
&amp;nbsp;&amp;nbsp;&amp;nbsp; "mode": 1,
&amp;nbsp;&amp;nbsp;&amp;nbsp; "title": "Road Maintenance",
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need a 1 year token&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;How far into the rest services URL do I go to create the token? Do I create the token at the full path of &lt;A href="http://10.0.244.20/arcgis/rest/services/publicAGS/trafficStatus/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://10.0.244.20/arcgis/rest/services/publicAGS/trafficStatus/&lt;/A&gt; or all the way down to the layer index? &lt;/UL&gt;&lt;UL&gt;Do I create the token from my desktop or from the Amazon instance?&lt;/UL&gt;&lt;UL&gt;Do I use HTTP Referer? IP Address? or IP address of this request's origin? If I use http Referer, what's the syntax for http referer:?&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:29:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460195#M17813</guid>
      <dc:creator>JuneAcosta</dc:creator>
      <dc:date>2021-12-11T20:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Aquiring Token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460196#M17814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;see &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/0154/0154000005rp000000.htm"&gt;http://resources.arcgis.com/en/help/main/10.1/0154/0154000005rp000000.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 09:33:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460196#M17814</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2013-05-15T09:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Aquiring Token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460197#M17815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes I saw this documentation, and followed the outline, but still no luck with creating a token that works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your response.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 12:14:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460197#M17815</guid>
      <dc:creator>JuneAcosta</dc:creator>
      <dc:date>2013-05-15T12:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Aquiring Token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460198#M17816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;how you have create a token?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you use ip , Referer, request ip?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Where do you use token : in a proxy?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 13:13:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460198#M17816</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2013-05-15T13:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Aquiring Token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460199#M17817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have tried to use all 3. Im using thru a proxy page, but even if I test the token in a browser by appending it to the rest URL it fails.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 13:16:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460199#M17817</guid>
      <dc:creator>JuneAcosta</dc:creator>
      <dc:date>2013-05-15T13:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Aquiring Token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460200#M17818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;where you do store user/roles arcgis server ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when you do generate with HTTP Referer what do you write in textbox?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 14:17:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460200#M17818</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2013-05-15T14:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Aquiring Token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460201#M17819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;User Store and Role Store are using ArcGIS Server Built-in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For Http Referer I uses: &lt;/SPAN&gt;&lt;A href="http://10.0.244.20"&gt;http://10.0.244.20&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 14:24:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460201#M17819</guid>
      <dc:creator>JuneAcosta</dc:creator>
      <dc:date>2013-05-15T14:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Aquiring Token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460202#M17820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;from browser do you do a request kind: &lt;/SPAN&gt;&lt;A href="http://10.0.244.20/arcgis/rest/services/publicAGS/trafficStatus/MapServer/1...with"&gt;http://10.0.244.20/arcgis/rest/services/publicAGS/trafficStatus/MapServer/1...with&lt;/A&gt;&lt;SPAN&gt; token and have you problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 14:43:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460202#M17820</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2013-05-15T14:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Aquiring Token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460203#M17821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes I tested the token like this..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://10.0.244.20/arcgis/rest/services/publicAGS/trafficStatus/Mapserver?token=_t9tqPaLDyZjyIMqDk_RmMKT_MXC_dv8Wy2ozYE17w74h4tPLzQ_sXrc7lD8a-au"&gt;http://10.0.244.20/arcgis/rest/services/publicAGS/trafficStatus/Mapserver?token=_t9tqPaLDyZjyIMqDk_RmMKT_MXC_dv8Wy2ozYE17w74h4tPLzQ_sXrc7lD8a-au&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but I still get the login window. I put in the username and password and it works, so I know that the login Im using to create the token is valid.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 14:55:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460203#M17821</guid>
      <dc:creator>JuneAcosta</dc:creator>
      <dc:date>2013-05-15T14:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Aquiring Token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460204#M17822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;can you generate token with httreferer&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://nameofmachine"&gt;http://nameofmachine&lt;/A&gt;&lt;SPAN&gt; and try in browser with &lt;/SPAN&gt;&lt;A href="http://nameofmachine/arcgis/rest/servi....?token="&gt;http://nameofmachine/arcgis/rest/servi....?token=&lt;/A&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 15:50:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460204#M17822</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2013-05-15T15:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Aquiring Token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460205#M17823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I created the token with http referer and still got the login window with the new token. My incident with ESRI has been escalated and someone has finally contacted me. I hope I can get this resolved today. Of course, If you have other ideas, by all means let me know so I can try it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 12:45:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460205#M17823</guid>
      <dc:creator>JuneAcosta</dc:creator>
      <dc:date>2013-05-16T12:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Aquiring Token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460206#M17824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried to set in proxy a dynamic token?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 13:29:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460206#M17824</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2013-05-16T13:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Aquiring Token</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460207#M17825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;in a tech support call June and i were able to identify that she already had a valid long-term token stored in her proxy which allowed her to successfully retrieve secure content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://webserver/proxy/proxy.ashx?http://otherserver/arcgis/rest/services/Secure/MapServer"&gt;http://webserver/proxy/proxy.ashx?http://otherserver/arcgis/rest/services/Secure/MapServer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason she couldn't see her secure layer in her web app (based on ArcGIS Online "Basic Viewer" template) was because of this line in App.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;esri.config.defaults.io.alwaysUseProxy = false;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Setting this property to true is a convenient request to force ALL the web traffic spawned by the application through the proxy (allowing the retrieval of secure content).&amp;nbsp; check out the following &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/ags_secureservices.html"&gt;article&lt;/A&gt;&lt;SPAN&gt; for more information on different ways of working with secure services in JS applications.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 19:56:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/aquiring-token/m-p/460207#M17825</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-05-16T19:56:57Z</dc:date>
    </item>
  </channel>
</rss>

