<?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: Authentication problem: can't access proprietary Arcgis portal in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-problem-can-t-access-proprietary/m-p/1005607#M70942</link>
    <description>&lt;P&gt;You could try adding the machine name that is running the application as the redirect_uri. For instance, if the application is running off of a server named j.test.com, you could specify &lt;A href="http://j.test.com" target="_blank"&gt;http://j.test.com&lt;/A&gt;&amp;nbsp;and &lt;A href="https://j.test.com" target="_blank"&gt;https://j.test.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, it might be helpful to understand the purpose of the redirect_uri: "&lt;A href="https://doc.arcgis.com/en/arcgis-online/manage-data/add-items.htm#GUID-62F59323-B8BF-4BDE-8597-7A12C429423F" target="_self"&gt;Redirect URIs are valid addresses that users of your app can be redirected to after they successfully log in.&lt;/A&gt;" Say that you are accessing the application using a certain URL (&lt;A href="https://j.test.com" target="_blank"&gt;https://j.test.com/webAppURL&lt;/A&gt;). After clicking the sign-in button in your app, the OAuth process should take you to your portal sign-in page. After signing-in, you will be redirected to the initial URL (&lt;A href="https://j.test.com" target="_blank"&gt;https://j.test.com/webAppUrl&lt;/A&gt;). As long as you have the proper redirect_URI set (in the example, &lt;A href="https://j.test.com" target="_blank"&gt;https://j.test.com&lt;/A&gt;), you should be redirected properly from the portal sign-in page back to your application URL.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Nov 2020 18:31:35 GMT</pubDate>
    <dc:creator>JulianLentz</dc:creator>
    <dc:date>2020-11-30T18:31:35Z</dc:date>
    <item>
      <title>Authentication problem: can't access proprietary Arcgis portal</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-problem-can-t-access-proprietary/m-p/1005487#M70939</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;I am currently developping a MFC application that loads html and javascript code, using the Arcgis javascript api (4.17), to display a map, where I am adding feature and graphic layers. I must as well add that I am not using the ArcGIS Web AppBuilder. All good until now and I want now to upload these data/feature layers on a specific proprietary Arcgis portal. The authentication pattern I am trying to develop is the named user login workflow.&lt;/P&gt;&lt;P&gt;I tried thus to follow this tutorial and use the code provided by it: &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/identity-oauth-basic/index.html" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/identity-oauth-basic/index.html&lt;/A&gt;&lt;BR /&gt;My application is registered on the proprietary Arcgis account and I have its client/application ID.&lt;BR /&gt;As many, I have this "redirect_uri" error displayed when I am launching my application and try to sign in, and even when I am naively double click on the unmodified identity-oauth-basic.html file provided by the aforementioned tutorial. Following that, I got a bit confused with what I can find on the net to solve this problem.&lt;/P&gt;&lt;P&gt;From what I gathered from the net, I understand that I need to specify on the Arcgis portal the URL of the page users of my app are redirected to after they successfully log in.&lt;BR /&gt;But in my case, everything is local and I am basically embedding a html file through my application. Thus I don't know what to specify as a "redirect url" in the "Authentication" pane of the registered application on the Arcgis account.&lt;BR /&gt;I tried to add "http://localhost/" and "https://localhost/" as some tutorials and forum posts may specify it, but the problem is still here. I wouldn't actually know what I should type in a web browser to point to my html file, except from its absolute path.&lt;BR /&gt;I added as well as a "redirect url" the address I am specifying in my OAuthInfo instance. Here as well I am getting confused about the different specified urls. The proprietary portal url I am trying to work with has the following format: https://&amp;lt;company name&amp;gt;.maps.arcgis.com. But some urls are specified with the '/arcgis' (redirects to a non-found page in my case) at the end and the aforementioned tutorial is even adding the '/sharing' extension (redirects to a page where I can be redirected to the Arcgis API reference). What are the conventions here and what should I use in my OAuthInfo instance and on the application authentication settings?&lt;/P&gt;&lt;P&gt;Can someone clarify these different points and help move forward with this authentication problem? Thanks a lot in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 13:24:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-problem-can-t-access-proprietary/m-p/1005487#M70939</guid>
      <dc:creator>FrancoisPicard</dc:creator>
      <dc:date>2020-11-30T13:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication problem: can't access proprietary Arcgis portal</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-problem-can-t-access-proprietary/m-p/1005560#M70940</link>
      <description>&lt;P&gt;What is the URL for your application when you run it locally? Is it http://localhost or is there a port, like &lt;A href="http://localhost:3333?" target="_blank" rel="noopener"&gt;http://localhost:3333?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can add the redirect with a wildcard in your item like&amp;nbsp;&lt;A href="http://localhost:3333/*" target="_blank" rel="noopener"&gt;http://localhost:3333/*&lt;/A&gt;&amp;nbsp;or&amp;nbsp;&lt;A href="http://localhost/*" target="_blank" rel="noopener"&gt;http://localhost/*&lt;/A&gt;&amp;nbsp;see if that helps.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 17:03:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-problem-can-t-access-proprietary/m-p/1005560#M70940</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2020-11-30T17:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication problem: can't access proprietary Arcgis portal</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-problem-can-t-access-proprietary/m-p/1005607#M70942</link>
      <description>&lt;P&gt;You could try adding the machine name that is running the application as the redirect_uri. For instance, if the application is running off of a server named j.test.com, you could specify &lt;A href="http://j.test.com" target="_blank"&gt;http://j.test.com&lt;/A&gt;&amp;nbsp;and &lt;A href="https://j.test.com" target="_blank"&gt;https://j.test.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, it might be helpful to understand the purpose of the redirect_uri: "&lt;A href="https://doc.arcgis.com/en/arcgis-online/manage-data/add-items.htm#GUID-62F59323-B8BF-4BDE-8597-7A12C429423F" target="_self"&gt;Redirect URIs are valid addresses that users of your app can be redirected to after they successfully log in.&lt;/A&gt;" Say that you are accessing the application using a certain URL (&lt;A href="https://j.test.com" target="_blank"&gt;https://j.test.com/webAppURL&lt;/A&gt;). After clicking the sign-in button in your app, the OAuth process should take you to your portal sign-in page. After signing-in, you will be redirected to the initial URL (&lt;A href="https://j.test.com" target="_blank"&gt;https://j.test.com/webAppUrl&lt;/A&gt;). As long as you have the proper redirect_URI set (in the example, &lt;A href="https://j.test.com" target="_blank"&gt;https://j.test.com&lt;/A&gt;), you should be redirected properly from the portal sign-in page back to your application URL.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 18:31:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-problem-can-t-access-proprietary/m-p/1005607#M70942</guid>
      <dc:creator>JulianLentz</dc:creator>
      <dc:date>2020-11-30T18:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication problem: can't access proprietary Arcgis portal</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-problem-can-t-access-proprietary/m-p/1005793#M70950</link>
      <description>&lt;P&gt;&lt;SPAN&gt;My application has a resource folder where from the html/javascript code is located and executed. When I open the html file, including my html and javascript code, with a web browser, I only see the absolute path of the file in the address bar. I am never using explicitely a URL.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 08:45:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-problem-can-t-access-proprietary/m-p/1005793#M70950</guid>
      <dc:creator>FrancoisPicard</dc:creator>
      <dc:date>2020-12-01T08:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication problem: can't access proprietary Arcgis portal</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-problem-can-t-access-proprietary/m-p/1005796#M70951</link>
      <description>&lt;P&gt;The application is a c++ application running locally on a dedicated computer. It is not running off of a specific server.&lt;BR /&gt;I talked about "proprietary" portal but&amp;nbsp;&lt;SPAN&gt;"private" may have been a better adjective.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;This arcgis portal is managed by another company. I am trying to upload a feature layer I am creating locally through my application on this portal.&lt;BR /&gt;The OAuth process should allow me to log in to this arcgis portal so that I can uploade data on it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 08:52:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-problem-can-t-access-proprietary/m-p/1005796#M70951</guid>
      <dc:creator>FrancoisPicard</dc:creator>
      <dc:date>2020-12-01T08:52:46Z</dc:date>
    </item>
  </channel>
</rss>

