I am using ArcGIS Viewer for Flex 3.6 and ArcGIS for Server 10.2.2 to create web maps for my organisation. Due to data licensing restrictions, I have had to restrict a few of the services using Web-Tier authentication with ArcGIS Web Adaptor and our internal Windows domain user groups.
For those that have access to the restricted services the web application opens fine, but for those that do not, they get an error popup message for each service, saying: "SoandSo layer failed to load: Fault info: Unable to get token service url from (http://MyWebAdaptorDomain/arcgis/rest/info) Version 10.01+ required."
Is there any way to stop these error messages popping up so that those who do not have access to the secure services do not receive error messages and simply do not see the restricted layers?
One common option is to have two different configuration files or apps.
Another option, if you are compiling the flex viewer code yourself, you could try commenting out or removing https://github.com/Esri/arcgis-viewer-flex/blob/develop/src/com/esri/viewer/managers/MapManager.mxml...