[GIS] Invalid redirect_URI Web AppBuilder Deployment from Server

arcgis-web-appbuilder

I have configured an ArcGIS Web AppBuilder Map as an application in ArcGIS Online. It is consumed by IIS6 on a Windows 2003 Server Machine. When I hit the URL; I receive ERROR 400 Invalid URI_indirect. My application was copied to my server from AGOL. What is the solution for this if I am not using Web AppBuilder in Development mode? What should my URI be when I register the app in AGOL

Best Answer

Most likely the appid that you're using does not have your new URL in its list of Redirect URIs. Here are the instructions from the Web AppBuilder FAQs:

It is indicated that the URI of Web AppBuilder is not added or set correctly in the Redirect URI list when you registered the App ID for Web AppBuilder in the ArcGIS portal. Complete the following steps:

  1. Go to /server directory of the Web AppBuilder installation, delete signininfo.json file.
  2. Review step 4. Update the existing App ID with the correct redirect URIs. see View and update app registration info. Alternatively, you can create a new App ID from the scratch.
  3. Refresh the browser running Web AppBuilder. Provide your App ID again, and click Continue.

https://developers.arcgis.com/web-appbuilder/guide/faqs.htm