Ahoj všichni,<\/P>
<\/P>
Všechny testy jsou prováděny na vývojovém serveru, otevírání v IE nebo Google Chrome.<\/P>
Používám AGOL a vytvořil jsem ArcGIS Online aplikaci v MyContent, možnost "Přidat položku" --> "Aplikace"<\/P>
pro testovací účely jsem vyplnil sekci "Nastavení webové mapové aplikace" s 2 různými URL.<\/P>
- http:\/\/localhost\/[AGOLwebApplication]<\/A> , tento formát funguje<\/P> - http:\/\/[developement server]\/[AGOLwebApplication]<\/A>, tento formát selhává<\/P><\/P>Poté jsem šel do Přehledu, Zobrazit aplikaci pro otevření aplikace.<\/P><\/P><\/P><\/P>Když AGOL otevře aplikaci, nastanou dva scénáře:<\/P> - otevře <\/SPAN>http:\/\/localhost\/[AGOLwebApplication]<\/A>, zobrazí se vyskakovací okno "Prosím přihlaste se pro pokračování". Když vyberu "OK", funguje to!!!<\/SPAN><\/P> - otevře http:\/\/[developement server]\/[AGOLwebApplication]<\/A> . V tomto případě se zobrazí vyskakovací okno "Prosím přihlaste se pro pokračování". Když vyberu "OK" vyskakovací okno vrátí chybovou zprávu<\/STRONG> "ArcGIS Portal Directory ... Neplatný redirect_uri".<\/STRONG><\/P><\/P>Toto je URL s chybou:<\/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>
-
Poté jsem šel do Přehledu, Zobrazit aplikaci pro otevření aplikace.<\/P>
Když AGOL otevře aplikaci, nastanou dva scénáře:<\/P>
- otevře <\/SPAN>
- otevře
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:
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.