<?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: Issue attempting OAuth2  in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-attempting-oauth2/m-p/723022#M67153</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, might be a typo in the code, or perhaps due to the localhost port number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just went through the tutorial and it worked for me. Here is the code I used (you'll still need to host it locally and use your client id):&amp;nbsp;&lt;A class="link-titled" href="https://codepen.io/noash/pen/abOvjZy" title="https://codepen.io/noash/pen/abOvjZy"&gt;https://codepen.io/noash/pen/abOvjZy&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesn't work for you, I would double-check that the exact same url (and port number if used) are used for hosting the app and for the redirect uri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Feb 2020 19:17:29 GMT</pubDate>
    <dc:creator>Noah-Sager</dc:creator>
    <dc:date>2020-02-12T19:17:29Z</dc:date>
    <item>
      <title>Issue attempting OAuth2</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-attempting-oauth2/m-p/723021#M67152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to learn how to access services using OAuth2 with javascript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on the tutorial on this link &lt;A class="link-titled" href="https://developers.arcgis.com/labs/javascript/access-services-with-oauth-2/" title="https://developers.arcgis.com/labs/javascript/access-services-with-oauth-2/"&gt;Access services with OAuth 2.0 | ArcGIS for Developers&lt;/A&gt;. Initially, it allows me to sign in (from the sign in link) and provide my arcgis online credentials. Thereafter, I am getting the error below after I have entered my arcgis online credentials. &lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/481963_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I followed the steps of creating, registering and providing a redirect uri for the application. I copied the code and changed the portalURL and appid. So I just advice on why I am getting this error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/481961_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 05:18:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-attempting-oauth2/m-p/723021#M67152</guid>
      <dc:creator>bobongubza</dc:creator>
      <dc:date>2020-02-12T05:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue attempting OAuth2</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-attempting-oauth2/m-p/723022#M67153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, might be a typo in the code, or perhaps due to the localhost port number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just went through the tutorial and it worked for me. Here is the code I used (you'll still need to host it locally and use your client id):&amp;nbsp;&lt;A class="link-titled" href="https://codepen.io/noash/pen/abOvjZy" title="https://codepen.io/noash/pen/abOvjZy"&gt;https://codepen.io/noash/pen/abOvjZy&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesn't work for you, I would double-check that the exact same url (and port number if used) are used for hosting the app and for the redirect uri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 19:17:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-attempting-oauth2/m-p/723022#M67153</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2020-02-12T19:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue attempting OAuth2</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-attempting-oauth2/m-p/723023#M67154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right, there was a typo in the code I wrote.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Noah.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 08:34:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-attempting-oauth2/m-p/723023#M67154</guid>
      <dc:creator>bobongubza</dc:creator>
      <dc:date>2020-02-13T08:34:16Z</dc:date>
    </item>
  </channel>
</rss>

