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:
https://mdc.maps.arcgis.com/sharing/oauth2/authorize?client_id=zhTXYHod2BqMxg1X&response_type=token&state=%7B%22portalUrl%22%3A%22http%3A%2F%2Fmdc.maps.arcgis.com%22%7D&expiration=20160&redirect_uri=http%3A%2F%2Fs096v115%2FMyAPP%2Fjimu.js%2Foauth-callback.html