<?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 Unable to Access App Hosted on AWS S3 - &amp;quot;Invalid redirect_uri&amp;quot; (Error 400) in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/unable-to-access-app-hosted-on-aws-s3-quot-invalid/m-p/1563904#M16247</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I recently deployed my application to &lt;STRONG&gt;AWS S3&lt;/STRONG&gt; and attempted to integrate it with &lt;STRONG&gt;ArcGIS Online&lt;/STRONG&gt; for user authentication via OAuth 2.0. Unfortunately, I encounter the following error when trying to log in:&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6365441639112w960h540r960" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6365441639112" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6365441639112w960h540r960');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6365441639112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;ArcGIS Portal Directory
Error
Invalid redirect_uri
Error: 400&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;What I Have Tried:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;Registered the application in ArcGIS Online.&lt;/LI&gt;&lt;LI&gt;Added the correct &lt;STRONG&gt;Redirect URL&lt;/STRONG&gt; in the app’s settings under &lt;STRONG&gt;Redirect URLs&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Verified that the redirect_uri in the OAuth request matches exactly with the registered URL.&lt;/LI&gt;&lt;LI&gt;Confirmed that the application uses the correct &lt;STRONG&gt;Client ID&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/OL&gt;&lt;H3&gt;Configuration Notes:&lt;/H3&gt;&lt;P&gt;During configuration, I replaced the contents of the config.json file as follows: Previous content:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;"attributes": {
    "portalUrl": "https://exb.maps.arcgis.com",
    "isWebTier": false,
    "clientId": "",
    "title": "XBLD_AWS",
    "description": "XBLD_AWS",
    "type": "Web Experience",
    "thumbnail": null
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Replaced with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"attributes": {
    "portalUrl": "https://exb.maps.arcgis.com",
    "clientId": "xy" 
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume this change shouldn’t matter because after reverting to include the additional information, the app behaves exactly the same.&lt;/P&gt;&lt;H3&gt;Additional Context:&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;The map I’m trying to display is shared only within my ArcGIS Online organization, but I suspect that’s unrelated to the issue since I cannot even log in to authenticate.&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;H3&gt;Questions:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;Could my changes to config.json impact the redirect process?&lt;/LI&gt;&lt;LI&gt;Is there a specific setting in ArcGIS Online that needs to be configured for apps hosted on AWS S3?&lt;/LI&gt;&lt;LI&gt;How can I resolve or debug this issue further?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I’d greatly appreciate any help or suggestions to get the app working. Thank you in advance!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Dec 2024 22:42:05 GMT</pubDate>
    <dc:creator>Danielb3</dc:creator>
    <dc:date>2024-12-02T22:42:05Z</dc:date>
    <item>
      <title>Unable to Access App Hosted on AWS S3 - "Invalid redirect_uri" (Error 400)</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/unable-to-access-app-hosted-on-aws-s3-quot-invalid/m-p/1563904#M16247</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I recently deployed my application to &lt;STRONG&gt;AWS S3&lt;/STRONG&gt; and attempted to integrate it with &lt;STRONG&gt;ArcGIS Online&lt;/STRONG&gt; for user authentication via OAuth 2.0. Unfortunately, I encounter the following error when trying to log in:&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6365441639112w960h540r116" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6365441639112" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6365441639112w960h540r116');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6365441639112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;ArcGIS Portal Directory
Error
Invalid redirect_uri
Error: 400&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;What I Have Tried:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;Registered the application in ArcGIS Online.&lt;/LI&gt;&lt;LI&gt;Added the correct &lt;STRONG&gt;Redirect URL&lt;/STRONG&gt; in the app’s settings under &lt;STRONG&gt;Redirect URLs&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Verified that the redirect_uri in the OAuth request matches exactly with the registered URL.&lt;/LI&gt;&lt;LI&gt;Confirmed that the application uses the correct &lt;STRONG&gt;Client ID&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/OL&gt;&lt;H3&gt;Configuration Notes:&lt;/H3&gt;&lt;P&gt;During configuration, I replaced the contents of the config.json file as follows: Previous content:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;"attributes": {
    "portalUrl": "https://exb.maps.arcgis.com",
    "isWebTier": false,
    "clientId": "",
    "title": "XBLD_AWS",
    "description": "XBLD_AWS",
    "type": "Web Experience",
    "thumbnail": null
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Replaced with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"attributes": {
    "portalUrl": "https://exb.maps.arcgis.com",
    "clientId": "xy" 
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume this change shouldn’t matter because after reverting to include the additional information, the app behaves exactly the same.&lt;/P&gt;&lt;H3&gt;Additional Context:&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;The map I’m trying to display is shared only within my ArcGIS Online organization, but I suspect that’s unrelated to the issue since I cannot even log in to authenticate.&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;H3&gt;Questions:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;Could my changes to config.json impact the redirect process?&lt;/LI&gt;&lt;LI&gt;Is there a specific setting in ArcGIS Online that needs to be configured for apps hosted on AWS S3?&lt;/LI&gt;&lt;LI&gt;How can I resolve or debug this issue further?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I’d greatly appreciate any help or suggestions to get the app working. Thank you in advance!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 22:42:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/unable-to-access-app-hosted-on-aws-s3-quot-invalid/m-p/1563904#M16247</guid>
      <dc:creator>Danielb3</dc:creator>
      <dc:date>2024-12-02T22:42:05Z</dc:date>
    </item>
  </channel>
</rss>

