Hola a todos,<\/P>
<\/P>
Todas las pruebas se realizan dentro del servidor de desarrollo, abriendo IE o Google Chrome.<\/P>
Usando AGOL creé una Aplicación ArcGIS Online bajo MiContenido, opción "Agregar elemento" --> "Una aplicación"<\/P>
para fines de prueba llené la sección "Configuración de la aplicación de mapeo web" con 2 URL diferentes.<\/P>
- http:\/\/localhost\/[AGOLwebApplication]<\/A> , este formato funciona<\/P> - http:\/\/[developement server]\/[AGOLwebApplication]<\/A>, este formato falla<\/P><\/P>Luego fui a Resumen, Ver Aplicación para abrir la aplicación.<\/P><\/P><\/P><\/P>Cuando AGOL abre la Aplicación, dos escenarios:<\/P> - se abre <\/SPAN>http:\/\/localhost\/[AGOLwebApplication]<\/A>, muestra una ventana emergente "Por favor inicie sesión para continuar". Nosotros yo selecciono "OK" ¡funciona!!!<\/SPAN><\/P> - se abre http:\/\/[developement server]\/[AGOLwebApplication]<\/A> . En este caso muestra una ventana emergente "Por favor inicie sesión para continuar". Nosotros yo selecciono "OK" la ventana emergente devuelve un mensaje de error<\/STRONG> "Directorio de ArcGIS Portal ... redirect_uri inválido".<\/STRONG><\/P><\/P>Esta es la URL con error:<\/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>
-
Luego fui a Resumen, Ver Aplicación para abrir la aplicación.<\/P>
Cuando AGOL abre la Aplicación, dos escenarios:<\/P>
- se abre <\/SPAN>
- se abre
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:
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.