Manually passing secure token info to Legend dijit

Discussion created by babbot on Dec 23, 2011
Latest reply on Jun 11, 2012 by babbot
Hi all,

A quick query regarding the legend dijit. We're currently using SOAP to get a security token (a particular requirement of this project), and passing that over to the JS frontend. This works perfectly well with everything except the legend dijit.

The URLs it creates are malformed, because our hard-coded layer url attribute contains the "?token=mytoken" suffix:

Now I know this works with the IdentityManager; is there some Credential object I can create in a particular place for the legend dijit to pick it up? Any other suggestions, besides reinventing the legend dijit with some URL sanity checks?

Cheers, Ben.