AnsweredAssumed Answered

Legend doesn't work with secure map services

Question asked by jbrink on Sep 1, 2011
Latest reply on Oct 13, 2014 by rickdh
We have secured map services with AGS. I have the proxy.config, proxy.ashx, and web.config in my application. My map layers display OK using the proxy. When I try and display my legend using the proxy map layers they will not display with out a login that comes up. If I enter my user and password the legend displays. I also plugged in my rest services from a unsecured AGS server and the legend displays. I looked up the dijit legend api reference and it doesn't have a parameter for the proxy.
Is there a parameter for the Legend digit that will allow you to use the proxy?
Should the legend use the proxy for the rest service?

var legend = new esri.dijit.Legend({
                    map: map,
                   layerInfos: legendLayers
                }, "legendDiv");
                legend.startup();

How anyone experienced this?

Thanks

Jimmy Brink

Outcomes