We've had to redo the web adaptor configuration for our Portal site (the server also has ArcServer installed which is the federated and hosting server for Portal - kids, don't configure the same web adaptor for Portal and Server even if it lets you. Lesson learned).
We had to install a new web adaptor (called portal) for the Portal site - using AGO Assistant we were able to re-wire existing apps with the correct URL reflecting the new web adaptor. However we are still encountering a problem -
When trying to access layers published through the federated server (My Hosted Services server connection directly adding items into Portal) they don't render ("Layer cannot be added to the map"), and there's a 500 error.
The URL that is not valid is: <servername/domain>/arcgis/sharing/generateToken...... So this url is referencing the old Portal web adaptor. When I change the url to reference the new web adaptor, it's valid and generates a token.
So what I'm wondering is if there is somewhere in the Portal configuration to change this URL to reflect the new web adaptor. I've dug around in the ../portaladmin options but with no luck.
Thanks -
Allen