<?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 Basic question need help understanding URL's, webservers. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basic-question-need-help-understanding-url-s/m-p/190599#M17595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to publish HTML, JavaScript, CSS files that I wrote on my computer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's very basic, just opens map (from map ID) and view layers. I want to understand how people can view these HTML and JavaScript files&amp;nbsp;in my organization.&lt;/P&gt;&lt;P&gt;We have okta log in and I can't get passed the log in from my simple JS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="281" src="https://community.esri.com/legacyfs/online/458194_pastedImage_1.png" width="185" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've done some research and I read that you have to register the App in your organization. I read through this&amp;nbsp;&lt;A href="https://developers.arcgis.com/labs/javascript/access-services-with-oauth-2/" rel="nofollow noopener noreferrer" target="_blank"&gt;https://developers.arcgis.com/labs/javascript/access-services-with-oauth-2/&lt;/A&gt;&amp;nbsp;. I logged into my OKTA with the test Script and it worked no problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;      // ArcGIS Enterprise Portals are also supported
        var portalUrl = "https://www.arcgis.com/sharing";

        // subsitute your own client_id to identify who spawned the login and check for a matching redirect URI
        var info = new OAuthInfo({
          appId: "JTpyML5GgvA1jEoo",
          popup: false // inline redirects don't require any additional app configuration
        });&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when I try to add&amp;nbsp;my own App I don't know what to&amp;nbsp;populate the URL field with?&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" height="463" src="https://community.esri.com/legacyfs/online/458255_pastedImage_2.png" width="549" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I'm new to this and trying to figure this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:Thanks@!" rel="nofollow noopener noreferrer" target="_blank"&gt;Thanks&lt;/A&gt;!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 09:35:17 GMT</pubDate>
    <dc:creator>deleted-user-yC5VkbyXzrQR</dc:creator>
    <dc:date>2021-12-11T09:35:17Z</dc:date>
    <item>
      <title>Basic question need help understanding URL's, webservers.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basic-question-need-help-understanding-url-s/m-p/190599#M17595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to publish HTML, JavaScript, CSS files that I wrote on my computer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's very basic, just opens map (from map ID) and view layers. I want to understand how people can view these HTML and JavaScript files&amp;nbsp;in my organization.&lt;/P&gt;&lt;P&gt;We have okta log in and I can't get passed the log in from my simple JS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="281" src="https://community.esri.com/legacyfs/online/458194_pastedImage_1.png" width="185" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've done some research and I read that you have to register the App in your organization. I read through this&amp;nbsp;&lt;A href="https://developers.arcgis.com/labs/javascript/access-services-with-oauth-2/" rel="nofollow noopener noreferrer" target="_blank"&gt;https://developers.arcgis.com/labs/javascript/access-services-with-oauth-2/&lt;/A&gt;&amp;nbsp;. I logged into my OKTA with the test Script and it worked no problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;      // ArcGIS Enterprise Portals are also supported
        var portalUrl = "https://www.arcgis.com/sharing";

        // subsitute your own client_id to identify who spawned the login and check for a matching redirect URI
        var info = new OAuthInfo({
          appId: "JTpyML5GgvA1jEoo",
          popup: false // inline redirects don't require any additional app configuration
        });&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when I try to add&amp;nbsp;my own App I don't know what to&amp;nbsp;populate the URL field with?&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" height="463" src="https://community.esri.com/legacyfs/online/458255_pastedImage_2.png" width="549" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I'm new to this and trying to figure this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:Thanks@!" rel="nofollow noopener noreferrer" target="_blank"&gt;Thanks&lt;/A&gt;!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:35:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basic-question-need-help-understanding-url-s/m-p/190599#M17595</guid>
      <dc:creator>deleted-user-yC5VkbyXzrQR</dc:creator>
      <dc:date>2021-12-11T09:35:17Z</dc:date>
    </item>
  </channel>
</rss>

