Proxy and long-term token with WMTS

556
2
11-22-2013 04:28 AM
AzharIbrahim
New Contributor III
I'm trying to add a long-term token to my proxy page for use with a WMTS service. The token is added to the getCapabilties request, but the tile requests seem to not go through the proxy and the token doesn't get added to the request. This leads to the login redirect.

I have the alwaysUseProxy set to true. If I add the proxy to the beginning of the tile URL shown in fiddler, the image shows up fine so I assume that the proxy is working okay.

Any suggestions--I'm not sure what else to try.

We're handling authentication through a separate application, hence the reason for the long-term token in the proxy page.
0 Kudos
2 Replies
AzharIbrahim
New Contributor III
Update:

The silverlight API works fine as you can add the proxy url and token to the layer when you are creating the layer. In fiddler, the GetTile requests go through the proxy and the token is added.

Is is possible to do the same thing in Javascript. I haven't found anything that works yet.
0 Kudos
Noah-Sager
Esri Regular Contributor
Hi Azhar,

Where did the proxy page come from? What is the code snippet that you use to call the proxy?
0 Kudos