Olá a todos,<\/P>
<\/P>
Todos os testes foram realizados dentro do servidor de desenvolvimento, abrindo IE ou Google Chrome.<\/P>
Usando AGOL, criei uma Aplicação ArcGIS Online em MyContent, opção "Adicionar Item" --> "Uma Aplicação"<\/P>
Para fins de teste, preenchi a seção "Configurações da Aplicação de Mapeamento Web" com 2 URLs diferentes.<\/P>
- http:\/\/localhost\/[AGOLwebApplication]<\/A> , este formato funciona<\/P> - http:\/\/[developement server]\/[AGOLwebApplication]<\/A>, este formato falha<\/P><\/P>Então fui para Visão Geral, Ver Aplicação para abrir a aplicação.<\/P><\/P><\/P><\/P>Quando AGOL abre a Aplicação, dois cenários:<\/P> - ele abre <\/SPAN>http:\/\/localhost\/[AGOLwebApplication]<\/A>, ele mostra uma janela popup "Por favor, faça login para continuar". Quando seleciono "OK", funciona!!!<\/SPAN><\/P> - ele abre http:\/\/[developement server]\/[AGOLwebApplication]<\/A> . Neste caso, mostra uma janela popup "Por favor, faça login para continuar". Quando seleciono "OK", a popup retorna uma mensagem de erro<\/STRONG> "ArcGIS Portal Directory ... Redirect_uri inválido".<\/STRONG><\/P><\/P>Esta é a URL com erro:<\/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>
-
Então fui para Visão Geral, Ver Aplicação para abrir a aplicação.<\/P>
Quando AGOL abre a Aplicação, dois cenários:<\/P>
- ele abre <\/SPAN>
- ele 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:
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.