Select to view content in your preferred language

Proxy Use with Secured Services

382
0
09-07-2011 08:11 AM
ColterSikora1
Emerging Contributor
Hello All,

With some added security applied to our GIS service data, we are trying to assemble a proxy page that will access the data held within our local REST services directory.  However, using a sample ESRI script, as shown below, is not allowing for a redirect to the REST services directory.  Has anyone been able to forge through this?  In this case, we are trying to throw credentials at the server.  We may consider switiching to a SQL-based server instance (to use dynamic tokens), but we would like to avoid it.  (Our srever is the 6th one down [http://OURSERVER/ArcGIS/rest/services].)

<?xml version="1.0" encoding="utf-8" ?>
<!-- Proxy config is used to set the ArcGIS Server services that the proxy will forward to.        
        mustMatch: false to only proxy to sites listed, false to proxy to any site -->
<ProxyConfig mustMatch="false">
  <serverItems>
    <!-- serverUrl options:
            url = location of the ArcGIS Server, either specific URL or stem
            matchAll = false to forward any request beginning with the url
            token = (optional) token to include for token secured services, usually a long-term token
            tokenUrl = (optional) token service for a Web site (url)
            timeout = (optional) short-term timeout for a token in minutes
            username = (optional) username for a token or http secured site
            password = (optional) password for a token or http secured site
            domain = (optional) domain for an http secured site            
    -->
    <serverItem url="http://sampleserver1.arcgisonline.com/arcgis/rest/services"
                matchAll="false" />
    <serverItem url="http://sampleserver2.esri.com/arcgis/rest/services/"
                matchAll="false" />
 <serverItem url="http://sampleserver3.arcgisonline.com/arcgis/rest/services/"
                matchAll="false" />
    <serverItem url="http://server.arcgisonline.com/arcgis/rest/services"
                matchAll="false" />    
    <serverItem url="http://net931/ArcGISToken/rest/services"
                matchAll="false" tokenUrl="http://net931/arcgistoken/tokens" 
                username="test" password="test.test"
                timeout="5" />
    <serverItem url="http://OURSERVER/ArcGIS/rest/services"
                matchAll="false" domain="test" username="user_id" password="password" />
    <!--<serverItem url="http://net931/ArcGISToken/rest/services"
                matchAll="false" 
                token="XONNvtvh9u-Depi26nvMxUaSm-q-_aft9ipe6NdyDlaWajbHyxPNskCoMe9CmtjV" />-->

  </serverItems>
</ProxyConfig>


Thanks in advance! 

Colter
Tags (2)
0 Kudos
0 Replies