Accessing the secured resources

Feedback


Users could access the secured resources after getting the available Token. There are two ways to access the services: sending requests by SuperMap iClient (for JavaScript, for Flash, for Sliverlight, for Android), and sending requests by REST or REST-based application.

Accessing by REST

SuperMap iServer GIS services (see GIS services resource hierarchy), OGC services and all management resources(see Service management resource hierarchy) support accessing by Token. Note: when accessing every resource of the secured service, carry "Token" parameter.

Example:

http://localhost:8090/iserver/services/map-china400/rest?token=NZkILm9Tl2FGzwK_nUh9krlHOtO0ds83lDoARA85_rMveuTyK0TyGcYV-5rn3wUYE-MSNPlw6wKnewy8jek_JQ.

http://localhost:8090/iserver/services/map-china400/rest/maps/China/tileImage.png?token=NZkILm9Tl2FGzwK_nUh9krlHOtO0ds83lDoARA85_rMveuTyK0TyGcYV-5rn3wUYE-MSNPlw6wKnewy8jek_JQ..

Please refer to: Quickly publishing GIS services with REST API

Accessing by iClient

SuperMap iClient SDK provides interface for carring Token by client application. Please refer to SuperMap iClient 11i(2023) for JavaScript.