Invalid redirect URI error 400, when upgrading from previous versions of ArcGIS GIS Server (which are federated with Portal for ArcGIS) to version 10.5.
Duplicate of BUG-000111993: The program menu shortcut created for Server Manager points at http://localhost:6080/arcgis/manager . This shortcut works fine so long as the server is not federated and the security protocol continues to include HTTP.
Once the server node is federated, this program menu shortcut does not work. As documented here (https://enterprise.arcgis.com/en/server/latest/administer/windows/administer-a-federated-server.ht URL property to store the Manager URL that adheres to the 3 requirements listed above.
3) Delete the original shortcut file from C:\Program Files\Common Files\ArcGIS\Support\Shortcuts
4) Paste the new, correct shortcut file in the Shortcuts directory.
解决办法
1. Open Portal admin end point:<a href="https://machine.com:7443/arcgis/portaladmin/" target="_blank">https://machine.com:7443/arcgis/portaladmin/</a>2. Go to security/oauth/getAppInfo3. Copy the JSON file on the appInfo.. 4. Go to security/oauth/updateAppInfoPaste into the below interface, adding additional endpoints as needed. In this case, the entry that needs to be added is an additional entry for "<a href="http://server.internaldomain.com" target="_blank">server.internaldomain.com</a>". For example, the above data would change to:{"appId":"arcgisonline","redirectURIs":["<a href="https://gregp2.esri.com" target="_blank">https://gregp2.esri.com</a>","*.<a href="http://esri.com" target="_blank">esri.com</a>","*.<a href="http://arcgis.com" target="_blank">arcgis.com</a>","<a href="http://server.internaldomain.com" target="_blank">server.internaldomain.com</a>"]}Also Mentioned in this Knowledge Base Article:<a href="https://esri.my.salesforce.com/ka139000000oLsJ" target="_blank">https://esri.my.salesforce.com/ka139000000oLsJ</a>