Hallo zusammen,<\/P>
<\/P>
Alle Tests werden innerhalb des Entwicklungsservers durchgeführt, indem IE oder Google Chrome geöffnet wird.<\/P>
Mit AGOL habe ich eine ArcGIS Online-Anwendung unter MyContent, Option "Element hinzufügen" --> "Eine Anwendung" erstellt.<\/P>
Zu Testzwecken habe ich den Abschnitt "Web Mapping Application Settings" mit 2 verschiedenen URLs ausgefüllt.<\/P>
- http:\/\/localhost\/[AGOLwebApplication]<\/A> , dieses Format funktioniert.<\/P> - http:\/\/[developement server]\/[AGOLwebApplication]<\/A>, dieses Format schlägt fehl.<\/P><\/P>Dann bin ich zu Übersicht gegangen, Ansicht der Anwendung, um die Anwendung zu öffnen.<\/P><\/P><\/P><\/P>Wenn AGOL die Anwendung öffnet, gibt es zwei Szenarien:<\/P> - es öffnet <\/SPAN>http:\/\/localhost\/[AGOLwebApplication]<\/A>, es zeigt ein Popup-Fenster "Bitte melden Sie sich an, um fortzufahren". Wenn ich "OK" auswähle, funktioniert es!!!<\/SPAN><\/P> - es öffnet http:\/\/[developement server]\/[AGOLwebApplication]<\/A> . In diesem Fall zeigt es ein Popup-Fenster "Bitte melden Sie sich an, um fortzufahren". Wenn ich "OK" auswähle, gibt das Popup eine Fehlermeldung zurück "ArcGIS Portal Directory ... Ungültiger redirect_uri".<\/STRONG><\/P><\/P>Dies ist die URL mit dem Fehler:<\/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>
-
Dann bin ich zu Übersicht gegangen, Ansicht der Anwendung, um die Anwendung zu öffnen.<\/P>
Wenn AGOL die Anwendung öffnet, gibt es zwei Szenarien:<\/P>
- es öffnet <\/SPAN>
- es öffnet
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:
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.