<?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: Oauth with Esri React in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/oauth-with-esri-react/m-p/1035158#M72008</link>
    <description>&lt;P&gt;This app uses Vue with OAuth, but the patterns are the same regardless of framework being used.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/odoe/map-vue/blob/master/src/data/auth.ts" target="_blank" rel="noopener"&gt;https://github.com/odoe/map-vue/blob/master/src/data/auth.ts&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can replace with the imports from esri to&amp;nbsp;&lt;EM&gt;@ arcgis/core&lt;/EM&gt; if you use the ESM package.&lt;/P&gt;&lt;P&gt;Don't forget to have an oauth-callback.html page as shown here.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/jsapi-resources/blob/8f21b5a66256e855f2899764239cf2b3fb990c7e/oauth/oauth-callback.html" target="_blank" rel="noopener"&gt;https://github.com/Esri/jsapi-resources/blob/8f21b5a66256e855f2899764239cf2b3fb990c7e/oauth/oauth-callback.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The syntax on the page is different than what is in the vue app above.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Mar 2021 21:39:32 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2021-03-10T21:39:32Z</dc:date>
    <item>
      <title>Oauth with Esri React</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/oauth-with-esri-react/m-p/1035151#M72007</link>
      <description>&lt;P&gt;I need to use oauth2 to allow users on our platform to login with Esri and view their private layers. With vanilla javascript, I would use &lt;A href="https://developers.arcgis.com/documentation/security-and-authentication/arcgis-identity/" target="_self"&gt;IdentityManager&amp;nbsp;&lt;/A&gt; however, I cannot find an equivalent for use in React. Namely, I don't know what import statement to use to import the identity manager and oauth Esri packages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've found the &lt;A href="https://www.npmjs.com/package/@arcgis/core" target="_self"&gt;arcgis node repo&lt;/A&gt; but the documentation doesn't state how I can use oauth.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 21:17:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/oauth-with-esri-react/m-p/1035151#M72007</guid>
      <dc:creator>cyk</dc:creator>
      <dc:date>2021-03-10T21:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Oauth with Esri React</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/oauth-with-esri-react/m-p/1035158#M72008</link>
      <description>&lt;P&gt;This app uses Vue with OAuth, but the patterns are the same regardless of framework being used.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/odoe/map-vue/blob/master/src/data/auth.ts" target="_blank" rel="noopener"&gt;https://github.com/odoe/map-vue/blob/master/src/data/auth.ts&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can replace with the imports from esri to&amp;nbsp;&lt;EM&gt;@ arcgis/core&lt;/EM&gt; if you use the ESM package.&lt;/P&gt;&lt;P&gt;Don't forget to have an oauth-callback.html page as shown here.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/jsapi-resources/blob/8f21b5a66256e855f2899764239cf2b3fb990c7e/oauth/oauth-callback.html" target="_blank" rel="noopener"&gt;https://github.com/Esri/jsapi-resources/blob/8f21b5a66256e855f2899764239cf2b3fb990c7e/oauth/oauth-callback.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The syntax on the page is different than what is in the vue app above.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 21:39:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/oauth-with-esri-react/m-p/1035158#M72008</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-03-10T21:39:32Z</dc:date>
    </item>
  </channel>
</rss>

