Hi,
I have a secure service of Utilities that I would like to use in the Enhanced Search Widget. The utility layer is in my Application. This secure service has been added to my ArcGIS Online account using stored credentials and is shared with a group. Users log into Web AppBuilder using their ArcGIS Online account. It would be nice if they could log in once and then access the secured service in the enhanced search widget.
I could use the query widget that allows me to pick from the layers in my web map. However, I like the enhanced tools in your enhanced search widget.
Thanks!
Allison
Allison,
So are you saying that the Query widget does not challenge for credentials if the webmap has already challenged you? If that is the case I need to investigate what they are doing differently then me.
Hi Robert, No, the query widget does not ask for a username and password when I access the secured Utility web map layer. This Utility layer is in my web map.
What I did is I added my ArcGIS Server web service as an item in my ArcGIS Online content. Because my service is secure, I stored the username and password credentials with the map image layer. This Utility map image layer is now referenced in my contents. I share this layer to my groups and I use this layer in my web map. In my web map and my application, I am not referencing the URL from my ArcGIS server. When users log into ArcGIS Online they can view my web map and the Utility layer. Because the Utility layer is using stored credential, the users do not have to log in a second time to see the layer.
Hope this helps explain.
thanks!
Allison
Allison,
Thanks for the info. It will take time to replicate your situation and test but at least I have your workflow for this.
Did you ever get a resolution to this? I have the same workflow and the same issue.
Nolita,
No there was never any progress on this.
Just to note for the next person who might have this issue …
I started from scratch and did get this to work as expected.
e.g. Using an secure service has been added to my ArcGIS Online (AGOL) account using stored credentials and is shared with a group. Then using the Secured Service in Web Application Builder and the eSearch Widget. Then when the application is launched, only the AGOL account login is required for the eSearch to work.
Not sure what caused the failure the first time. Haven’t been able to replicate. My hypotheses are:
I also found an esri suggestion to only use hosted Feature Services. I did not have to resort to this for it to work.
Thanks for creating such a superb eSearch Widget. It is a “must have” for any web map app in my agency.