<?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 Redirect is Suddenly Incorrect in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-redirect-is-suddenly-incorrect/m-p/1039774#M72171</link>
    <description>&lt;P&gt;I am working through a strange situation.&amp;nbsp; I had an application that has been working for years and then suddenly, the ArcServer stopped redirecting properly.&amp;nbsp; Here are the details:&lt;/P&gt;&lt;P&gt;URL of App:&amp;nbsp; &lt;A href="https://app.domain.com/AppName" target="_blank"&gt;https://app.domain.com/AppName&lt;/A&gt;&lt;/P&gt;&lt;P&gt;URL of Portal: &lt;A href="https://geo.domain.com/portal" target="_blank"&gt;https://geo.domain.com/portal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Code (Simple Oauth for Portal)&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;require([
          "esri/arcgis/Portal", "esri/arcgis/OAuthInfo", "esri/IdentityManager",
          "dojo/dom-style", "dojo/dom-attr", "dojo/dom", "dojo/on", "dojo/_base/array",
          "dojo/domReady!"
        ], function(arcgisPortal, OAuthInfo, esriId,
          domStyle, domAttr, dom, on, arrayUtils) {
          var info = new OAuthInfo({
              appId: "&amp;lt;&amp;gt;",
            portalUrl: "https://geo.domain.com/portal",
            authNamespace: "portal_oauth_inline",
            popup: false
          });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I click "Sign In," I am taken to the portal for authentication.&amp;nbsp; I "allow" the app to use my credentials.&amp;nbsp; At this point, it was redirecting back to the application and it was working just fine.&amp;nbsp; Now it redirects incorrectly to: &lt;A href="https://geo.domain.com/AppName" target="_blank"&gt;https://geo.domain.com/AppName&lt;/A&gt;.&amp;nbsp; I validated the callback urls in the network traffic and they should be sending the callback to &lt;A href="https://app.domain.com/AppName" target="_blank"&gt;https://app.domain.com/AppName&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I opened the application that is registered with the portal to validate the names in Application &amp;gt; Redirect URIs section.&amp;nbsp; Bottom line is that the application worked and now it seems to have stopped redirecting properly.&amp;nbsp; Are there settings in Portal that can mess this up?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Mar 2021 14:08:41 GMT</pubDate>
    <dc:creator>JustinWilson</dc:creator>
    <dc:date>2021-03-23T14:08:41Z</dc:date>
    <item>
      <title>Authentication Redirect is Suddenly Incorrect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-redirect-is-suddenly-incorrect/m-p/1039774#M72171</link>
      <description>&lt;P&gt;I am working through a strange situation.&amp;nbsp; I had an application that has been working for years and then suddenly, the ArcServer stopped redirecting properly.&amp;nbsp; Here are the details:&lt;/P&gt;&lt;P&gt;URL of App:&amp;nbsp; &lt;A href="https://app.domain.com/AppName" target="_blank"&gt;https://app.domain.com/AppName&lt;/A&gt;&lt;/P&gt;&lt;P&gt;URL of Portal: &lt;A href="https://geo.domain.com/portal" target="_blank"&gt;https://geo.domain.com/portal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Code (Simple Oauth for Portal)&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;require([
          "esri/arcgis/Portal", "esri/arcgis/OAuthInfo", "esri/IdentityManager",
          "dojo/dom-style", "dojo/dom-attr", "dojo/dom", "dojo/on", "dojo/_base/array",
          "dojo/domReady!"
        ], function(arcgisPortal, OAuthInfo, esriId,
          domStyle, domAttr, dom, on, arrayUtils) {
          var info = new OAuthInfo({
              appId: "&amp;lt;&amp;gt;",
            portalUrl: "https://geo.domain.com/portal",
            authNamespace: "portal_oauth_inline",
            popup: false
          });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I click "Sign In," I am taken to the portal for authentication.&amp;nbsp; I "allow" the app to use my credentials.&amp;nbsp; At this point, it was redirecting back to the application and it was working just fine.&amp;nbsp; Now it redirects incorrectly to: &lt;A href="https://geo.domain.com/AppName" target="_blank"&gt;https://geo.domain.com/AppName&lt;/A&gt;.&amp;nbsp; I validated the callback urls in the network traffic and they should be sending the callback to &lt;A href="https://app.domain.com/AppName" target="_blank"&gt;https://app.domain.com/AppName&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I opened the application that is registered with the portal to validate the names in Application &amp;gt; Redirect URIs section.&amp;nbsp; Bottom line is that the application worked and now it seems to have stopped redirecting properly.&amp;nbsp; Are there settings in Portal that can mess this up?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 14:08:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-redirect-is-suddenly-incorrect/m-p/1039774#M72171</guid>
      <dc:creator>JustinWilson</dc:creator>
      <dc:date>2021-03-23T14:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication Redirect is Suddenly Incorrect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-redirect-is-suddenly-incorrect/m-p/1040162#M72175</link>
      <description>&lt;P&gt;This issue seems to be dependent on several compounding factors not related to the development.&amp;nbsp; Client location and network inconsistencies seem to be the culprit though that is very odd.&amp;nbsp; Thank you for anyone who looked at the issue.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 13:23:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/authentication-redirect-is-suddenly-incorrect/m-p/1040162#M72175</guid>
      <dc:creator>JustinWilson</dc:creator>
      <dc:date>2021-03-24T13:23:03Z</dc:date>
    </item>
  </channel>
</rss>

