<?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 App Login Proxy &amp;quot;Unable to generate token for this server&amp;quot; in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/app-login-proxy-quot-unable-to-generate-token-for/m-p/5302#M470</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to implement the Proxy for App Login detailed in the following:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/documentation/core-concepts/security-and-authentication/" title="https://developers.arcgis.com/documentation/core-concepts/security-and-authentication/"&gt;ArcGIS Security and Authentication | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I am getting the error below when the proxy code is attempting to convert the token 'from a Portal token into a Server token':&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: black;"&gt;{"error":{"code":400,"message":"Unable to generate token","details":["&lt;STRONG&gt;Unable to generate token for this server&lt;/STRONG&gt;"]}}&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: black;"&gt;The code is doing a GET to the following URI:&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: black;"&gt;&lt;A href="https://www.arcgis.com/sharing/generateToken?token=&amp;lt;token&amp;gt;&amp;amp;serverURL=https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer?f=json&amp;amp;f=json"&gt;https://www.arcgis.com/sharing/generateToken?token=&amp;lt;token&amp;gt;&amp;amp;serverURL=https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer?f=json&amp;amp;f=json&lt;/A&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: black;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: black;"&gt;Is there any reason why a token would not be able to be generated for&amp;nbsp;&lt;A href="https://www.arcgis.com/sharing/generateToken?token=%3Ctoken%3E&amp;amp;serverURL=https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer?f=json&amp;amp;f=json" style="color: #2989c5; text-decoration: none;"&gt;https://services.arcgisonline.com&lt;/A&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Nov 2017 16:09:13 GMT</pubDate>
    <dc:creator>AndrewPage1</dc:creator>
    <dc:date>2017-11-08T16:09:13Z</dc:date>
    <item>
      <title>App Login Proxy "Unable to generate token for this server"</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/app-login-proxy-quot-unable-to-generate-token-for/m-p/5302#M470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to implement the Proxy for App Login detailed in the following:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/documentation/core-concepts/security-and-authentication/" title="https://developers.arcgis.com/documentation/core-concepts/security-and-authentication/"&gt;ArcGIS Security and Authentication | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I am getting the error below when the proxy code is attempting to convert the token 'from a Portal token into a Server token':&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: black;"&gt;{"error":{"code":400,"message":"Unable to generate token","details":["&lt;STRONG&gt;Unable to generate token for this server&lt;/STRONG&gt;"]}}&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: black;"&gt;The code is doing a GET to the following URI:&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: black;"&gt;&lt;A href="https://www.arcgis.com/sharing/generateToken?token=&amp;lt;token&amp;gt;&amp;amp;serverURL=https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer?f=json&amp;amp;f=json"&gt;https://www.arcgis.com/sharing/generateToken?token=&amp;lt;token&amp;gt;&amp;amp;serverURL=https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer?f=json&amp;amp;f=json&lt;/A&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: black;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: black;"&gt;Is there any reason why a token would not be able to be generated for&amp;nbsp;&lt;A href="https://www.arcgis.com/sharing/generateToken?token=%3Ctoken%3E&amp;amp;serverURL=https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer?f=json&amp;amp;f=json" style="color: #2989c5; text-decoration: none;"&gt;https://services.arcgisonline.com&lt;/A&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 16:09:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/app-login-proxy-quot-unable-to-generate-token-for/m-p/5302#M470</guid>
      <dc:creator>AndrewPage1</dc:creator>
      <dc:date>2017-11-08T16:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: App Login Proxy "Unable to generate token for this server"</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/app-login-proxy-quot-unable-to-generate-token-for/m-p/5303#M471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This URL have a TOKEN parameter. How you are getting the Token to use with this request?&lt;BR /&gt;Did you follow the steps just like the link below:&lt;BR /&gt;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/arcgis-rest-api/#/Authentication/02r30000009z000000/" title="http://resources.arcgis.com/en/help/arcgis-rest-api/#/Authentication/02r30000009z000000/"&gt;ArcGIS REST API&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2017 11:10:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/app-login-proxy-quot-unable-to-generate-token-for/m-p/5303#M471</guid>
      <dc:creator>rgomes</dc:creator>
      <dc:date>2017-11-10T11:10:47Z</dc:date>
    </item>
  </channel>
</rss>

