I'd like to have a single app in WAB that contains both secured and unsecured services all from our ArcGIS Server that has integrated AD authentication. In my first attempt, WAB just popped up a log in as soon as the app was loaded. I would like to have all of these services together in the same app but only ask/attempt to log in if one of the secured services is turned on in the layer list. Any ideas how I can accomplish this either with built-in functionality or some custom code after downloading the app?
Blake,
Unfortunately if there is a secure service added to the app then the app will challenge for credential immediately and not wait for the layer to be visible. There is no way to change this that I know of unless you delay the adding of that secure layer to the map some how.