<?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 Authentication Issue in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/token-authentication-issue/m-p/42014#M3626</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am just trying to access the secure map services in a browser which are hosted on ArcGIS Server 10.1. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the following statement, i am able to generate the token&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&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;Server:6080&amp;gt;/arcgis/tokens?request=getToken&amp;amp;username=usr&amp;amp;password=pass&amp;amp;expiration=60&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I embedded the generated token using in&amp;nbsp; map service url as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://xxx.xxx.com/arcgis/rest/services/secVector/MapServer?&amp;amp;token=NktrSvfsIDf18KogdzYiqzltVCoJyU-tsHT6ZZ55wpY"&gt;http://xxx.xxx.com/arcgis/rest/services/secVector/MapServer?&amp;amp;token=NktrSvfsIDf18KogdzYiqzltVCoJyU-tsHT6ZZ55wpY&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this returned me the service metadata but when i clicked "View in ArcGIS Javascript", another browser window got opened and started asking for user name and password to access the service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So when i already provided the token then why it is again asking for user name and password.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Jun 2013 09:08:27 GMT</pubDate>
    <dc:creator>AshishArora</dc:creator>
    <dc:date>2013-06-12T09:08:27Z</dc:date>
    <item>
      <title>Token Authentication Issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/token-authentication-issue/m-p/42014#M3626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am just trying to access the secure map services in a browser which are hosted on ArcGIS Server 10.1. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the following statement, i am able to generate the token&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&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;Server:6080&amp;gt;/arcgis/tokens?request=getToken&amp;amp;username=usr&amp;amp;password=pass&amp;amp;expiration=60&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I embedded the generated token using in&amp;nbsp; map service url as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://xxx.xxx.com/arcgis/rest/services/secVector/MapServer?&amp;amp;token=NktrSvfsIDf18KogdzYiqzltVCoJyU-tsHT6ZZ55wpY"&gt;http://xxx.xxx.com/arcgis/rest/services/secVector/MapServer?&amp;amp;token=NktrSvfsIDf18KogdzYiqzltVCoJyU-tsHT6ZZ55wpY&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this returned me the service metadata but when i clicked "View in ArcGIS Javascript", another browser window got opened and started asking for user name and password to access the service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So when i already provided the token then why it is again asking for user name and password.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 09:08:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/token-authentication-issue/m-p/42014#M3626</guid>
      <dc:creator>AshishArora</dc:creator>
      <dc:date>2013-06-12T09:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Token Authentication Issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/token-authentication-issue/m-p/42015#M3627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My guess is that the token is not being passed when you click view in Javascript. If you add the map service (with the token) into a javascript application does it show the layer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 08:18:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/token-authentication-issue/m-p/42015#M3627</guid>
      <dc:creator>ShaunWeston</dc:creator>
      <dc:date>2013-06-18T08:18:28Z</dc:date>
    </item>
  </channel>
</rss>

