Hello,
I have had my Portal for ArcGIS (10.4.1) up for a few weeks now and I still don’t feel like the Web Adaptor is working correctly. I am using a server on the EXTERNAL EDGE of my DMZ for my Web Adaptor. It is a WORKGROUP server. I have used the name of the web adaptor server to create the link to my Portal for ArcGIS (https://portalservername/arcgis/home). The page can’t be displayed on my local network.
If I change it to https://123.45.678/arcgis/home I can access the Portal for ArcGIS homepage. When I go to Portal sign in page I get the following error: "Invalid redirect_uri 400" (attached pic of error).
I am not sure what else needs to be opened up (ports, rules, etc.). My I.T. department secures the server at the beginning of the SDLC and then turns it over to me for development. I’m trouble shooting constantly. If anyone has seen this issue or has some advice I’m am open to suggestions.
Not to sound redundant, but the reason you get the invalid redirect URI error is because the IP address is not a valid URL to redirect to for oauth authentication, only the URL you used to register the web adaptor is. You'll need to register the web adaptor over a URL that is accessible in your local network so you can use https://<webadaptor machine>.<domain>.com/<webadaptor context> to reach the Portal.