<?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 Authentication using OAutho2.0 in ArcGIS API Javascrippt in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-using-oautho2-0-in-arcgis-api/m-p/1227567#M79194</link>
    <description>&lt;P data-unlink="true"&gt;Hi everyone, so I have an Organization ArcGIS online account with a creator user type. I'm trying to access the hosted feature layer stored in the account and I need help with authenticating and identifying the app.&lt;/P&gt;&lt;P data-unlink="true"&gt;I'm having trouble with my&amp;nbsp;&lt;A href="https://codepen.io/Charanb98/pen/oNybdMd?editors=1010" target="_self"&gt;code&lt;/A&gt;, &amp;nbsp;when I click on the sign-in button, nothing happens.&amp;nbsp; For the OAuth 2.0 application which I created, I have set the redirect URL to &lt;A href="http://localhost:3000" target="_blank"&gt;http://localhost:3000&lt;/A&gt;&amp;nbsp;. Also, is there a way to make the sign-in button disappear after the user has signed in?&lt;/P&gt;</description>
    <pubDate>Tue, 01 Nov 2022 18:03:46 GMT</pubDate>
    <dc:creator>TheGamer</dc:creator>
    <dc:date>2022-11-01T18:03:46Z</dc:date>
    <item>
      <title>Authentication using OAutho2.0 in ArcGIS API Javascrippt</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-using-oautho2-0-in-arcgis-api/m-p/1227567#M79194</link>
      <description>&lt;P data-unlink="true"&gt;Hi everyone, so I have an Organization ArcGIS online account with a creator user type. I'm trying to access the hosted feature layer stored in the account and I need help with authenticating and identifying the app.&lt;/P&gt;&lt;P data-unlink="true"&gt;I'm having trouble with my&amp;nbsp;&lt;A href="https://codepen.io/Charanb98/pen/oNybdMd?editors=1010" target="_self"&gt;code&lt;/A&gt;, &amp;nbsp;when I click on the sign-in button, nothing happens.&amp;nbsp; For the OAuth 2.0 application which I created, I have set the redirect URL to &lt;A href="http://localhost:3000" target="_blank"&gt;http://localhost:3000&lt;/A&gt;&amp;nbsp;. Also, is there a way to make the sign-in button disappear after the user has signed in?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 18:03:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-using-oautho2-0-in-arcgis-api/m-p/1227567#M79194</guid>
      <dc:creator>TheGamer</dc:creator>
      <dc:date>2022-11-01T18:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication using OAutho2.0 in ArcGIS API Javascrippt</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-using-oautho2-0-in-arcgis-api/m-p/1227617#M79197</link>
      <description>&lt;P&gt;"document.getElementbyID" is misspelled, so that event listener is never applied. You have to use the correct case in JavaScript, so that should be "document.getElementById". Make sure you check the browser's &lt;A href="https://developer.chrome.com/docs/devtools/" target="_self"&gt;developer tools&lt;/A&gt; to catch mistakes like this.&lt;/P&gt;&lt;P&gt;You can use code like this to hide or display elements&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;      document.getElementById("sign-in").addEventListener("click", () =&amp;gt; {
        document.getElementById("sign-in").style.display = "none";
        document.getElementById("sign-out").style.display = "block";
        esriId.getCredential(info.portalUrl + "/sharing");
      });
      document.getElementById("sign-out").addEventListener("click", () =&amp;gt; {
        esriId.destroyCredentials();
        document.getElementById("sign-in").style.display = "block";
        document.getElementById("sign-out").style.display = "none";
      });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 19:23:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-using-oautho2-0-in-arcgis-api/m-p/1227617#M79197</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-11-01T19:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication using OAutho2.0 in ArcGIS API Javascrippt</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-using-oautho2-0-in-arcgis-api/m-p/1227618#M79198</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2839"&gt;@KenBuja&lt;/a&gt;&amp;nbsp;omgg thank you so much! I fixed the error but when i click on it, it says &lt;A href="http://www.arcgis.com" target="_blank"&gt;www.arcgis.com &lt;/A&gt;refused to connect&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 19:23:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-using-oautho2-0-in-arcgis-api/m-p/1227618#M79198</guid>
      <dc:creator>TheGamer</dc:creator>
      <dc:date>2022-11-01T19:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication using OAutho2.0 in ArcGIS API Javascrippt</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-using-oautho2-0-in-arcgis-api/m-p/1227625#M79199</link>
      <description>&lt;P&gt;One more thing...take a look at a recent &lt;A href="https://odoe.net/blog/my-secret-arcgis-identity" target="_self"&gt;blog&lt;/A&gt; that @Anonymous User wrote about authentication code in JavaScript.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 19:35:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-using-oautho2-0-in-arcgis-api/m-p/1227625#M79199</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-11-01T19:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication using OAutho2.0 in ArcGIS API Javascrippt</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-using-oautho2-0-in-arcgis-api/m-p/1227627#M79200</link>
      <description>&lt;P&gt;Have you read the &lt;A href="https://developers.arcgis.com/documentation/mapping-apis-and-services/security/" target="_self"&gt;developer help&lt;/A&gt; about setting up authentication?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 19:41:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-using-oautho2-0-in-arcgis-api/m-p/1227627#M79200</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-11-01T19:41:10Z</dc:date>
    </item>
  </channel>
</rss>

