皆さん、こんにちは、<\/P>
<\/P>
すべてのテストは開発サーバー内で行われ、IEまたはGoogle Chromeを開いています。<\/P>
AGOLを使用して、MyContentの下にArcGIS Online アプリケーションを作成し、「アイテムの追加」-->「アプリケーション」を選択しました。<\/P>
テスト目的で「Web Mapping Application Settings」セクションに2つの異なるURLを入力しました。<\/P>
- http:\/\/localhost\/[AGOLwebApplication]<\/A> 、この形式は動作します。<\/P> - http:\/\/[developement server]\/[AGOLwebApplication]<\/A>、この形式は失敗します。<\/P><\/P>次に、Overviewに移動し、View Applicationでアプリケーションを開きました。<\/P><\/P><\/P><\/P>AGOLがアプリケーションを開くと、2つのシナリオがあります:<\/P> - それは http:\/\/localhost\/[AGOLwebApplication]<\/A> を開きます。ポップアップウィンドウ「続行するにはサインインしてください」が表示されます。私たちが「OK」を選択すると、それは動作します!!!<\/SPAN><\/P> - それは http:\/\/[developement server]\/[AGOLwebApplication]<\/A> を開きます。この場合、「続行するにはサインインしてください」というポップアップウィンドウが表示されます。私たちが「OK」を選択すると、ポップアップがエラーメッセージを返します 「ArcGIS Portal Directory ... 無効な redirect_uri」。<\/P><\/P>これはエラーのあるURLです:<\/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>
-
次に、Overviewに移動し、View Applicationでアプリケーションを開きました。<\/P>
AGOLがアプリケーションを開くと、2つのシナリオがあります:<\/P>
- それは
これはエラーのあるURLです:<\/P>
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:
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.