REST API using secured services

597
1
10-25-2011 12:59 PM
Sravan_KumarUddarraju
New Contributor
Hi,

My Silverlight (API 2.2 ArcGIS 10) application currently accessing the secured map services though the proxy url and it works fine. Next, I am performing ???Export Map??? (using REST API) on secured map services and I get ???Invalid token??? error, which is expected error (since no token has been used in my rest url). I can generate the token in the client side and pass the token to REST url to make it work, but I would like to avoid passing user name and password to client side (security) to generate the token.

My question is, how can I use proxy for the rest operations? If not is there any way to get (dynamic) token back from the proxy to the client side, so that it can be used for REST operations.

Any help on this is greatly appreciated.

Thanks,
Srv
0 Kudos
1 Reply
RichardWatson
Frequent Contributor
This does not answer your question directly but might be helpfu.

We have an ASP.NET web application which performs many functions:

  • Authentication

  • Acts as a proxy

  • Adds custom actions/verbs


When the web application recieves a request from SL it dynamically generates a token which it attaches to the ArcGIS Server request and then forwards the request.  We cache and expire tokens for performance reasons.
0 Kudos