Bonjour à tous,<\/P>
<\/P>
Tous les tests sont effectués à l'intérieur du serveur de développement, en ouvrant IE ou Google Chrome.<\/P>
En utilisant AGOL, j'ai créé une Application ArcGIS Online sous MyContent, option "Add Item" --> "An Application"<\/P>
À des fins de test, j'ai rempli la section "Web Mapping Application Settings" avec 2 URL différentes.<\/P>
- http:\/\/localhost\/[AGOLwebApplication]<\/A> , ce format fonctionne<\/P> - http:\/\/[developement server]\/[AGOLwebApplication]<\/A>, ce format échoue<\/P><\/P>Puis je suis allé dans Overview, View Application pour ouvrir l'application.<\/P><\/P><\/P><\/P>Lorsque AGOL ouvre l'Application, deux scénarios :<\/P> - il ouvre <\/SPAN>http:\/\/localhost\/[AGOLwebApplication]<\/A>, il affiche une fenêtre popup "Veuillez vous connecter pour continuer". Nous je sélectionne "OK" ça fonctionne !!!<\/SPAN><\/P> - il ouvre http:\/\/[developement server]\/[AGOLwebApplication]<\/A> . Dans ce cas, il affiche une fenêtre popup "Veuillez vous connecter pour continuer". Nous je sélectionne "OK" le popup renvoie un message d'erreur<\/STRONG> "ArcGIS Portal Directory ... redirect_uri invalide".<\/STRONG><\/P><\/P>Ceci est l'URL avec erreur :<\/P><\/P>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<\/A><\/P><\/BODY><\/HTML>
-
Puis je suis allé dans Overview, View Application pour ouvrir l'application.<\/P>
Lorsque AGOL ouvre l'Application, deux scénarios :<\/P>
- il ouvre <\/SPAN>
- il ouvre
Some others hints on resolving this can be found on my blog (older, but most is still helpful)
/blogs/myAlaskaGIS/2015/01/15/tips-and-observations-for-getting-web-appbuilder-developer-edition-installed?sr=search&searchId=c6821912-c68d-4288-be6c-3dce71a0bfb5&searchIndex=1
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.
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:
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.