Hello everyone,
All tests are done inside the development server, opening IE or Google Chrome.
Using AGOL I created an ArcGIS Online Application under MyContent, option "Add Item" --> "An Application"
for testing purposes I filled the section "Web Mapping Application Settings" with 2 different url.
- http://localhost/[AGOLwebApplication] , this format works
- http://[developement server]/[AGOLwebApplication], this format fails
Then I went to Overview, View Application to open the application.
When AGOL opens the Application, two scenarios:
- it opens http://localhost/[AGOLwebApplication], It shows a popup window "Please sign in to continue". We I select "OK" it works!!!
- it opens http://[developement server]/[AGOLwebApplication] . In this case it shows a popup window "Please sign in to continue". We I select "OK" the popup returns an error message "ArcGIS Portal Directory ... Invalid redirect_uri".
This is the URL with error:
FAQs—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers
What should I do when I try to set the App ID and encounter an Invalid redirect_uri error?
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:
- Go to /server directory of the Web AppBuilder installation, delete signininfo.json file.
- 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.
- Refresh the browser running Web AppBuilder.
- Provide your App ID again, and click Continue.
Some others hints on resolving this can be found on my blog (older, but most is still helpful)