<?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 Validate token usings portal /self in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/validate-token-usings-portal-self/m-p/1511086#M85128</link>
    <description>&lt;P&gt;I read on the following post &lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/portal-self/" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/rest-api-is-there-a-way-to-validate-user-token/m-p/320611#M1565&lt;/A&gt;&amp;nbsp;you could use your &lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/portal-self/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/rest/users-groups-and-items/portal-self/&lt;/A&gt; to validate a token and I can verified it could be used with the browser and postman to validate a token. Still I cannot manage to make it work either using javascript's fetch or jquery's ajax functions. It returns invalid token even though it is valid using the browser. Can anyone help me with this? Thanks in advance.&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;fetch('.../sharing/rest/portals/self?f=json&amp;amp;token=' + token,{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; method: 'GET'&lt;BR /&gt;}).then(...).catch( ....);&lt;/P&gt;&lt;P&gt;always returns&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"code": 498,&lt;BR /&gt;"message": "Invalid token.",&lt;BR /&gt;"details": []&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Sat, 27 Jul 2024 21:28:40 GMT</pubDate>
    <dc:creator>GerardoSevilla</dc:creator>
    <dc:date>2024-07-27T21:28:40Z</dc:date>
    <item>
      <title>Validate token usings portal /self</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/validate-token-usings-portal-self/m-p/1511086#M85128</link>
      <description>&lt;P&gt;I read on the following post &lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/portal-self/" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/rest-api-is-there-a-way-to-validate-user-token/m-p/320611#M1565&lt;/A&gt;&amp;nbsp;you could use your &lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/portal-self/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/rest/users-groups-and-items/portal-self/&lt;/A&gt; to validate a token and I can verified it could be used with the browser and postman to validate a token. Still I cannot manage to make it work either using javascript's fetch or jquery's ajax functions. It returns invalid token even though it is valid using the browser. Can anyone help me with this? Thanks in advance.&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;fetch('.../sharing/rest/portals/self?f=json&amp;amp;token=' + token,{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; method: 'GET'&lt;BR /&gt;}).then(...).catch( ....);&lt;/P&gt;&lt;P&gt;always returns&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"code": 498,&lt;BR /&gt;"message": "Invalid token.",&lt;BR /&gt;"details": []&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2024 21:28:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/validate-token-usings-portal-self/m-p/1511086#M85128</guid>
      <dc:creator>GerardoSevilla</dc:creator>
      <dc:date>2024-07-27T21:28:40Z</dc:date>
    </item>
  </channel>
</rss>

